2
0
Эх сурвалжийг харах

* patch by J. Gareth Moreton: Minor oversight in MovAnd2Mov 3 optimisation, resolves #37442

git-svn-id: trunk@45961 -
florian 5 жил өмнө
parent
commit
941020af1a

+ 4 - 1
compiler/x86/aoptx86.pas

@@ -5863,7 +5863,10 @@ unit aoptx86;
               begin
                 taicpu(p).loadreg(0, taicpu(p).oper[1]^.reg);
                 if taicpu(p).opsize = S_L then
-                  Include(OptsToCheck,aoc_MovAnd2Mov_3);
+                  begin
+                    Include(OptsToCheck,aoc_MovAnd2Mov_3);
+                    Result := True;
+                  end;
               end;
           end;