Bläddra i källkod

* x86: Fixed minor logic bug in aoc_ForceNewIteration check where UpdateUsedRegs was called at the wrong time.

J. Gareth "Curious Kit" Moreton 3 år sedan
förälder
incheckning
de650dea55
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      compiler/i386/aoptcpu.pas
  2. 1 1
      compiler/x86_64/aoptcpu.pas

+ 1 - 1
compiler/i386/aoptcpu.pas

@@ -252,7 +252,7 @@ unit aoptcpu;
 
             if not Result then
               begin
-                if not (p.typ in SkipInstr) then
+                if (p.typ in SkipInstr) then
                   UpdateUsedRegs(p);
 
                 p := tai(p.Next);

+ 1 - 1
compiler/x86_64/aoptcpu.pas

@@ -174,7 +174,7 @@ uses
 
             if not Result then
               begin
-                if not (p.typ in SkipInstr) then
+                if (p.typ in SkipInstr) then
                   UpdateUsedRegs(p);
 
                 p := tai(p.Next);