mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 13:29:14 +02:00
* fix mov rX,...; mov rX,... optimization, hp1 needs to be checked if it is really an instruction, resolves issue #27975
git-svn-id: trunk@30738 -
This commit is contained in:
parent
d5c1d511b8
commit
e56d8d1c96
@ -395,7 +395,7 @@ Implementation
|
|||||||
mov rX,...
|
mov rX,...
|
||||||
}
|
}
|
||||||
else if taicpu(hp1).opcode=A_MOV then
|
else if taicpu(hp1).opcode=A_MOV then
|
||||||
while (taicpu(hp1).opcode=A_MOV) and
|
while (hp1.typ=ait_instruction) and (taicpu(hp1).opcode=A_MOV) and
|
||||||
MatchOperand(taicpu(p).oper[0]^, taicpu(hp1).oper[0]^) and
|
MatchOperand(taicpu(p).oper[0]^, taicpu(hp1).oper[0]^) and
|
||||||
{ don't remove the first mov if the second is a mov rX,rX }
|
{ don't remove the first mov if the second is a mov rX,rX }
|
||||||
not(MatchOperand(taicpu(hp1).oper[0]^,taicpu(hp1).oper[1]^)) do
|
not(MatchOperand(taicpu(hp1).oper[0]^,taicpu(hp1).oper[1]^)) do
|
||||||
|
Loading…
Reference in New Issue
Block a user