Browse Source

Fixed LsrAnd2Lsr peephole optimization for ARM.

git-svn-id: trunk@26619 -
Jeppe Johansen 11 years ago
parent
commit
f773334374
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/arm/aoptcpu.pas

+ 1 - 0
compiler/arm/aoptcpu.pas

@@ -956,6 +956,7 @@ Implementation
                        (taicpu(p).oper[2]^.shifterop^.rs = NR_NO) and
                        (taicpu(p).oper[2]^.shifterop^.shiftmode = SM_LSR) and
                        GetNextInstructionUsingReg(p,hp1, taicpu(p).oper[0]^.reg) and
+                       (not RegModifiedBetween(taicpu(hp1).oper[0]^.reg, p, hp1)) and
                        RegEndOfLife(taicpu(p).oper[0]^.reg, taicpu(hp1)) then
                        begin
                          if (taicpu(p).oper[2]^.shifterop^.shiftimm >= 24 ) and