mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 22:28:06 +02:00
* x86: Improved "Test2Bt" peephole optimisation
This commit is contained in:
parent
b6da7a799a
commit
6cc391dfa1
@ -16870,7 +16870,8 @@ unit aoptx86;
|
||||
case taicpu(hp1).condition of
|
||||
C_None:
|
||||
begin
|
||||
if RegInUsedRegs(NR_DEFAULTFLAGS, TmpUsedRegs) then
|
||||
if RegInUsedRegs(NR_DEFAULTFLAGS, TmpUsedRegs) and
|
||||
not RegLoadedWithNewValue(NR_DEFAULTFLAGS, hp1) then
|
||||
{ Something is not quite normal, so play safe and don't change }
|
||||
IsValid := False;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user