mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-05 23:09:33 +01:00
Remove the postfix check in MovStrMov peephole optimizer for ARM
We don't need to check for the postfix, PF_NONE/PF_H/PF_B are all ok for us and can be intermixed. This allows the peephole optimizer to work for strb and strh instructions. git-svn-id: trunk@22367 -
This commit is contained in:
parent
0f40429389
commit
c3a91c5022
@ -833,7 +833,7 @@ Implementation
|
|||||||
}
|
}
|
||||||
if (taicpu(p).oper[1]^.typ = top_const) and
|
if (taicpu(p).oper[1]^.typ = top_const) and
|
||||||
(taicpu(hp1).opcode=A_STR) then
|
(taicpu(hp1).opcode=A_STR) then
|
||||||
while MatchInstruction(hp1, A_STR, [taicpu(p).condition], [PF_None]) and
|
while MatchInstruction(hp1, A_STR, [taicpu(p).condition], []) and
|
||||||
MatchOperand(taicpu(p).oper[0]^, taicpu(hp1).oper[0]^) and
|
MatchOperand(taicpu(p).oper[0]^, taicpu(hp1).oper[0]^) and
|
||||||
GetNextInstruction(hp1, hp2) and
|
GetNextInstruction(hp1, hp2) and
|
||||||
MatchInstruction(hp2, A_MOV, [taicpu(p).condition], [PF_None]) and
|
MatchInstruction(hp2, A_MOV, [taicpu(p).condition], [PF_None]) and
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user