mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-22 19:09:16 +02:00
* TX86AsmOptimizer.OptPass1MOVXX should search only over other instructions if it works with registers only
This commit is contained in:
parent
6147d6d8a0
commit
6dbe71cd30
@ -4239,7 +4239,7 @@ unit aoptx86;
|
||||
Result:=false;
|
||||
if taicpu(p).ops <> 2 then
|
||||
exit;
|
||||
if ((taicpu(p).oper[1]^.typ=top_reg) and GetNextInstructionUsingReg(p,hp1,taicpu(p).oper[1]^.reg)) or
|
||||
if (MatchOpType(taicpu(p),top_reg,top_reg) and GetNextInstructionUsingReg(p,hp1,taicpu(p).oper[1]^.reg)) or
|
||||
GetNextInstruction(p,hp1) then
|
||||
begin
|
||||
if MatchInstruction(hp1,taicpu(p).opcode,[taicpu(p).opsize]) and
|
||||
|
Loading…
Reference in New Issue
Block a user