mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 10:19:17 +02:00
* optimization Move removed 4 fixed
git-svn-id: trunk@43493 -
This commit is contained in:
parent
a5479bd91b
commit
a969097a80
@ -25,7 +25,7 @@ unit aoptcpu;
|
|||||||
|
|
||||||
{$i fpcdefs.inc}
|
{$i fpcdefs.inc}
|
||||||
|
|
||||||
{ $define DEBUG_AOPTCPU}
|
{$define DEBUG_AOPTCPU}
|
||||||
|
|
||||||
Interface
|
Interface
|
||||||
|
|
||||||
@ -340,6 +340,7 @@ unit aoptcpu;
|
|||||||
Assigned(FindRegDealloc(taicpu(p).oper[0]^.reg,tai(next.next)));
|
Assigned(FindRegDealloc(taicpu(p).oper[0]^.reg,tai(next.next)));
|
||||||
if result then
|
if result then
|
||||||
begin
|
begin
|
||||||
|
AllocRegBetween(taicpu(p).oper[1]^.reg,p,next,UsedRegs);
|
||||||
next.oper[1]^.ref^.base:=taicpu(p).oper[1]^.reg;
|
next.oper[1]^.ref^.base:=taicpu(p).oper[1]^.reg;
|
||||||
DebugMsg('Peephole: Move removed 4',p);
|
DebugMsg('Peephole: Move removed 4',p);
|
||||||
asml.remove(p);
|
asml.remove(p);
|
||||||
|
Loading…
Reference in New Issue
Block a user