Browse Source

* Xtensa: unified DataMov2Data optimization

git-svn-id: trunk@49616 -
florian 4 years ago
parent
commit
db8c723b9d
1 changed files with 6 additions and 2 deletions
  1. 6 2
      compiler/xtensa/aoptcpu.pas

+ 6 - 2
compiler/xtensa/aoptcpu.pas

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