浏览代码

* Xtensa: unified DataMov2Data optimization

git-svn-id: trunk@49616 -
florian 4 年之前
父节点
当前提交
db8c723b9d
共有 1 个文件被更改,包括 6 次插入2 次删除
  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