* 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:
florian 2012-06-07 18:21:46 +00:00
parent 5b02a7cb9b
commit 6e8594a9af

View File

@ -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