소스 검색

* patch by Nico Erfurth to remove superfluouse moves

git-svn-id: trunk@21422 -
florian 13 년 전
부모
커밋
fbc77b74c2
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      compiler/arm/aoptcpu.pas

+ 6 - 0
compiler/arm/aoptcpu.pas

@@ -512,6 +512,12 @@ Implementation
                               end;
                             end;
                       end;
+                    {
+                      Often we see shifts and then a superfluous mov to another register
+                      In the future this might be handled in RedundantMovProcess when it uses RegisterTracking
+                    }
+                    if GetNextInstruction(p, hp1) then
+                      RemoveSuperfluousMove(p, hp1, 'MovMov2Mov');
                   end;
                 A_ADD,
                 A_ADC,