mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 17:47:56 +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);
|
||||
|
||||
RemoveCurrentP(p);
|
||||
result:=RemoveCurrentP(p);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
@ -447,6 +447,7 @@ Implementation
|
||||
taicpu(p).loadconst(0,taicpu(p).oper[0]^.ref^.offset)
|
||||
else
|
||||
taicpu(p).loadconst(0,taicpu(p).oper[0]^.ref^.offset-32);
|
||||
result:=true;
|
||||
end;
|
||||
A_LDS:
|
||||
if (taicpu(p).oper[1]^.ref^.symbol=nil) and
|
||||
@ -468,6 +469,8 @@ Implementation
|
||||
taicpu(p).loadconst(1,taicpu(p).oper[1]^.ref^.offset)
|
||||
else
|
||||
taicpu(p).loadconst(1,taicpu(p).oper[1]^.ref^.offset-32);
|
||||
|
||||
result:=true;
|
||||
end;
|
||||
A_IN:
|
||||
if GetNextInstruction(p,hp1) then
|
||||
|
Loading…
Reference in New Issue
Block a user