소스 검색

Fix RemoveSuperfluousMov in ARM Peephole optimizers.

The last patch (r22622) got the condition wrong.

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

+ 1 - 1
compiler/arm/aoptcpu.pas

@@ -333,7 +333,7 @@ Implementation
            will be optimized to
              str reg2, [reg1]
          }
-         not (regLoadedWithNewValue(taicpu(p).oper[0]^.reg, p)) then
+         regLoadedWithNewValue(taicpu(p).oper[0]^.reg, p) then
         begin
           dealloc:=FindRegDeAlloc(taicpu(p).oper[0]^.reg,tai(movp.Next));
           if assigned(dealloc) then