Browse Source

* apply OptPass1OP to SLT/SLTU as well

florian 7 months ago
parent
commit
64e87c87bc
1 changed files with 4 additions and 2 deletions
  1. 4 2
      compiler/riscv/aoptcpurv.pas

+ 4 - 2
compiler/riscv/aoptcpurv.pas

@@ -607,7 +607,9 @@ implementation
                       RemoveInstr(p);
 
                       result:=true;
-                    end;
+                    end
+                  else
+                    result:=OptPass1OP(p);
                 end;
               A_SLTIU:
                 begin
@@ -673,8 +675,8 @@ implementation
               A_MULH,
               A_MULHSU,
               A_MULHU,
-              A_XORI,
               A_ORI,
+              A_XORI,
               A_AND,
               A_OR,
               A_XOR,