mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-09 09:14:38 +01:00
* MovMov2MovMov1 requires that the allocation of the first register is extended
git-svn-id: trunk@33948 -
This commit is contained in:
parent
56d3909dea
commit
2890927b10
@ -786,6 +786,7 @@ unit aoptx86;
|
|||||||
else if (taicpu(p).oper[1]^.typ=top_ref) and
|
else if (taicpu(p).oper[1]^.typ=top_ref) and
|
||||||
OpsEqual(taicpu(hp1).oper[0]^,taicpu(p).oper[1]^) then
|
OpsEqual(taicpu(hp1).oper[0]^,taicpu(p).oper[1]^) then
|
||||||
begin
|
begin
|
||||||
|
AllocRegBetween(taicpu(p).oper[0]^.reg,p,hp1,UsedRegs);
|
||||||
taicpu(hp1).loadreg(0,taicpu(p).oper[0]^.reg);
|
taicpu(hp1).loadreg(0,taicpu(p).oper[0]^.reg);
|
||||||
DebugMsg('PeepHole Optimization,MovMov2MovMov1',p);
|
DebugMsg('PeepHole Optimization,MovMov2MovMov1',p);
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user