mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 21:09:24 +02:00
* fix constant calculation for the AndAnd2And optimization if the first and is removed, noticed by Nico Erfurth
git-svn-id: trunk@23541 -
This commit is contained in:
parent
5af646d1d2
commit
ef1c848198
@ -1216,7 +1216,7 @@ Implementation
|
||||
else if not(RegUsedBetween(taicpu(p).oper[1]^.reg,p,hp1)) then
|
||||
begin
|
||||
DebugMsg('Peephole AndAnd2And done', hp1);
|
||||
taicpu(hp1).loadConst(2,taicpu(hp1).oper[2]^.val and taicpu(hp1).oper[2]^.val);
|
||||
taicpu(hp1).loadConst(2,taicpu(p).oper[2]^.val and taicpu(hp1).oper[2]^.val);
|
||||
taicpu(hp1).oppostfix:=taicpu(p).oppostfix;
|
||||
taicpu(hp1).loadReg(1,taicpu(p).oper[1]^.reg);
|
||||
asml.remove(p);
|
||||
|
Loading…
Reference in New Issue
Block a user