mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 09:29:26 +02:00
* Xtensa: unified DataMov2Data optimization
git-svn-id: trunk@49616 -
This commit is contained in:
parent
84507b49c2
commit
db8c723b9d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user