Skip to content
  • Chris Lattner's avatar
    Do NOT touch FP ops with LSR. This fixes a testcase Nate sent me from an · 0c0b38bb
    Chris Lattner authored
    inner loop like this:
    
    LBB_RateConvertMono8AltiVec_2:  ; no_exit
            lis r2, ha16(.CPI_RateConvertMono8AltiVec_0)
            lfs f3, lo16(.CPI_RateConvertMono8AltiVec_0)(r2)
            fmr f3, f3
            fadd f0, f2, f0
            fadd f3, f0, f3
            fcmpu cr0, f3, f1
            bge cr0, LBB_RateConvertMono8AltiVec_2  ; no_exit
    
    to an inner loop like this:
    
    LBB_RateConvertMono8AltiVec_1:  ; no_exit
            fsub f2, f2, f1
            fcmpu cr0, f2, f1
            fmr f0, f2
            bge cr0, LBB_RateConvertMono8AltiVec_1  ; no_exit
    
    Doh! good catch!
    
    llvm-svn: 23838
    0c0b38bb
Loading