mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 17:49:27 +02:00
* patch by Nico Erfurth: Minor fix for FoldShiftProcess peephole optimizer on ARM
Use UpdateUsedRegs and drop the check for reloading of the register, as this is done in RegUsedAfterInstruction now. git-svn-id: trunk@21520 -
This commit is contained in:
parent
5b02a7cb9b
commit
6e8594a9af
@ -533,8 +533,8 @@ Implementation
|
||||
) then
|
||||
begin
|
||||
CopyUsedRegs(TmpUsedRegs);
|
||||
if not(RegUsedAfterInstruction(taicpu(p).oper[0]^.reg,hp1,TmpUsedRegs)) or
|
||||
(MatchOperand(taicpu(p).oper[0]^, taicpu(hp1).oper[0]^)) then
|
||||
UpdateUsedRegs(TmpUsedRegs, tai(p.next));
|
||||
if not(RegUsedAfterInstruction(taicpu(p).oper[0]^.reg,hp1,TmpUsedRegs)) then
|
||||
for I:=1 to 2 do
|
||||
if MatchOperand(taicpu(p).oper[0]^, taicpu(hp1).oper[I]^.reg) then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user