mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 09:26:15 +02:00
Fix RemoveSuperfluousMov in ARM Peephole optimizers.
The last patch (r22622) got the condition wrong. git-svn-id: trunk@22624 -
This commit is contained in:
parent
938c8f1ee1
commit
aef7361f9f
@ -333,7 +333,7 @@ Implementation
|
|||||||
will be optimized to
|
will be optimized to
|
||||||
str reg2, [reg1]
|
str reg2, [reg1]
|
||||||
}
|
}
|
||||||
not (regLoadedWithNewValue(taicpu(p).oper[0]^.reg, p)) then
|
regLoadedWithNewValue(taicpu(p).oper[0]^.reg, p) then
|
||||||
begin
|
begin
|
||||||
dealloc:=FindRegDeAlloc(taicpu(p).oper[0]^.reg,tai(movp.Next));
|
dealloc:=FindRegDeAlloc(taicpu(p).oper[0]^.reg,tai(movp.Next));
|
||||||
if assigned(dealloc) then
|
if assigned(dealloc) then
|
||||||
|
Loading…
Reference in New Issue
Block a user