Explorar o código

* look further forward in TX86AsmOptimizer.OptPass1_V_MOVAP

git-svn-id: trunk@43855 -
florian %!s(int64=5) %!d(string=hai) anos
pai
achega
7da6bac960
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/x86/aoptx86.pas

+ 1 - 1
compiler/x86/aoptx86.pas

@@ -1287,7 +1287,7 @@ unit aoptx86;
                 p:=hp1;
                 result:=true;
               end
-            else if GetNextInstruction(p,hp1) then
+            else if GetNextInstructionUsingReg(p,hp1,taicpu(p).oper[1]^.reg) then
               begin
                 if MatchInstruction(hp1,[taicpu(p).opcode],[S_NO]) and
                   MatchOpType(taicpu(hp1),top_reg,top_reg) and