mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 10:49:29 +02:00
* make ShlOp2Op optimization more fool proof
This commit is contained in:
parent
bad14c5dbd
commit
37bb10e893
@ -4691,6 +4691,7 @@ unit aoptx86;
|
||||
MatchInstruction(hp1,A_MOV,A_LEA,[]) and
|
||||
MatchOpType(taicpu(hp1), top_ref, top_reg) and
|
||||
(taicpu(p).oper[1]^.reg=taicpu(hp1).oper[0]^.ref^.index) and
|
||||
(taicpu(p).oper[1]^.reg<>taicpu(hp1).oper[0]^.ref^.base) and
|
||||
(taicpu(hp1).oper[0]^.ref^.scalefactor in [0,1]) then
|
||||
begin
|
||||
TransferUsedRegs(TmpUsedRegs);
|
||||
|
Loading…
Reference in New Issue
Block a user