Преглед на файлове

* x86: Improved "Test2Bt" peephole optimisation

J. Gareth "Curious Kit" Moreton преди 1 година
родител
ревизия
6cc391dfa1
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      compiler/x86/aoptx86.pas

+ 2 - 1
compiler/x86/aoptx86.pas

@@ -16870,7 +16870,8 @@ unit aoptx86;
                 case taicpu(hp1).condition of
                   C_None:
                     begin
-                      if RegInUsedRegs(NR_DEFAULTFLAGS, TmpUsedRegs) then
+                      if RegInUsedRegs(NR_DEFAULTFLAGS, TmpUsedRegs) and
+                        not RegLoadedWithNewValue(NR_DEFAULTFLAGS, hp1) then
                         { Something is not quite normal, so play safe and don't change }
                         IsValid := False;