* TX86AsmOptimizer.OptPass1MOVXX takes care of volatility

This commit is contained in:
florian 2021-10-23 23:40:09 +02:00
parent 7f1050464a
commit 4610980f2e

View File

@ -4126,14 +4126,16 @@ unit aoptx86;
DebugMsg(SPeepholeOptimization + 'MovXXMovXX2Nop 1 done',p);
RemoveInstruction(hp1);
RemoveCurrentp(p); { p will now be equal to the instruction that follows what was hp1 }
Result:=true;
exit;
end
else
else if (taicpu(hp1).oper[1]^.typ<>top_ref) or (not(vol_write in taicpu(hp1).oper[1]^.ref^.volatility)) then
begin
DebugMsg(SPeepholeOptimization + 'MovXXMovXX2MoVXX 1 done',p);
RemoveInstruction(hp1);
Result:=true;
exit;
end;
Result:=true;
exit;
end
end;
end;