* Xtensa: unified DataMov2Data optimization

git-svn-id: trunk@49616 -
This commit is contained in:
florian 2021-07-17 21:07:02 +00:00
parent 84507b49c2
commit db8c723b9d

View File

@ -273,10 +273,14 @@ Implementation
ait_instruction: ait_instruction:
begin begin
case taicpu(p).opcode of case taicpu(p).opcode of
A_L32I: A_ADD,
A_ADDI,
A_L32I,
A_SRLI,
A_SUB:
begin begin
if GetNextInstructionUsingReg(p, hp1, taicpu(p).oper[0]^.reg) and if GetNextInstructionUsingReg(p, hp1, taicpu(p).oper[0]^.reg) and
RemoveSuperfluousMove(p, hp1, 'L32IMov2L32I') then RemoveSuperfluousMove(p, hp1, 'DataMov2Data') then
Result:=true; Result:=true;
end; end;
else else