mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 02:29:19 +02:00
* TX86AsmOptimizer.OptPass1MOVXX takes care of volatility
This commit is contained in:
parent
7f1050464a
commit
4610980f2e
@ -4126,14 +4126,16 @@ unit aoptx86;
|
|||||||
DebugMsg(SPeepholeOptimization + 'MovXXMovXX2Nop 1 done',p);
|
DebugMsg(SPeepholeOptimization + 'MovXXMovXX2Nop 1 done',p);
|
||||||
RemoveInstruction(hp1);
|
RemoveInstruction(hp1);
|
||||||
RemoveCurrentp(p); { p will now be equal to the instruction that follows what was hp1 }
|
RemoveCurrentp(p); { p will now be equal to the instruction that follows what was hp1 }
|
||||||
|
Result:=true;
|
||||||
|
exit;
|
||||||
end
|
end
|
||||||
else
|
else if (taicpu(hp1).oper[1]^.typ<>top_ref) or (not(vol_write in taicpu(hp1).oper[1]^.ref^.volatility)) then
|
||||||
begin
|
begin
|
||||||
DebugMsg(SPeepholeOptimization + 'MovXXMovXX2MoVXX 1 done',p);
|
DebugMsg(SPeepholeOptimization + 'MovXXMovXX2MoVXX 1 done',p);
|
||||||
RemoveInstruction(hp1);
|
RemoveInstruction(hp1);
|
||||||
|
Result:=true;
|
||||||
|
exit;
|
||||||
end;
|
end;
|
||||||
Result:=true;
|
|
||||||
exit;
|
|
||||||
end
|
end
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user