mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-02 00:50:17 +02:00
* patch by Christo Crause: Fix missed optimization opportunities, resolves #38285
git-svn-id: trunk@47925 -
This commit is contained in:
parent
c1a2b6279e
commit
3482121831
@ -423,7 +423,7 @@ Implementation
|
|||||||
|
|
||||||
DebugMsg('Peephole LdiOp2Opi performed', p);
|
DebugMsg('Peephole LdiOp2Opi performed', p);
|
||||||
|
|
||||||
RemoveCurrentP(p);
|
result:=RemoveCurrentP(p);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
@ -447,6 +447,7 @@ Implementation
|
|||||||
taicpu(p).loadconst(0,taicpu(p).oper[0]^.ref^.offset)
|
taicpu(p).loadconst(0,taicpu(p).oper[0]^.ref^.offset)
|
||||||
else
|
else
|
||||||
taicpu(p).loadconst(0,taicpu(p).oper[0]^.ref^.offset-32);
|
taicpu(p).loadconst(0,taicpu(p).oper[0]^.ref^.offset-32);
|
||||||
|
result:=true;
|
||||||
end;
|
end;
|
||||||
A_LDS:
|
A_LDS:
|
||||||
if (taicpu(p).oper[1]^.ref^.symbol=nil) and
|
if (taicpu(p).oper[1]^.ref^.symbol=nil) and
|
||||||
@ -468,6 +469,8 @@ Implementation
|
|||||||
taicpu(p).loadconst(1,taicpu(p).oper[1]^.ref^.offset)
|
taicpu(p).loadconst(1,taicpu(p).oper[1]^.ref^.offset)
|
||||||
else
|
else
|
||||||
taicpu(p).loadconst(1,taicpu(p).oper[1]^.ref^.offset-32);
|
taicpu(p).loadconst(1,taicpu(p).oper[1]^.ref^.offset-32);
|
||||||
|
|
||||||
|
result:=true;
|
||||||
end;
|
end;
|
||||||
A_IN:
|
A_IN:
|
||||||
if GetNextInstruction(p,hp1) then
|
if GetNextInstruction(p,hp1) then
|
||||||
|
Loading…
Reference in New Issue
Block a user