mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 21:09:11 +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
|
) then
|
||||||
begin
|
begin
|
||||||
CopyUsedRegs(TmpUsedRegs);
|
CopyUsedRegs(TmpUsedRegs);
|
||||||
if not(RegUsedAfterInstruction(taicpu(p).oper[0]^.reg,hp1,TmpUsedRegs)) or
|
UpdateUsedRegs(TmpUsedRegs, tai(p.next));
|
||||||
(MatchOperand(taicpu(p).oper[0]^, taicpu(hp1).oper[0]^)) then
|
if not(RegUsedAfterInstruction(taicpu(p).oper[0]^.reg,hp1,TmpUsedRegs)) then
|
||||||
for I:=1 to 2 do
|
for I:=1 to 2 do
|
||||||
if MatchOperand(taicpu(p).oper[0]^, taicpu(hp1).oper[I]^.reg) then
|
if MatchOperand(taicpu(p).oper[0]^, taicpu(hp1).oper[I]^.reg) then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user