35 lines · plain
1; RUN: llc < %s -mtriple=arm-apple-ios -arm-atomic-cfg-tidy=0 -mcpu=cortex-a9 | FileCheck %s2; rdar://84021263; Make sure if-converter is not predicating vldmia and ldmia. These are4; micro-coded and would have long issue latency even if predicated on5; false predicate.6 7define void @t(double %a, double %b, double %c, double %d, ptr nocapture %solutions, ptr nocapture %x) nounwind "frame-pointer"="all" {8entry:9; CHECK-LABEL: t:10; CHECK: vpop {d8}11; CHECK-NOT: vpopne12; CHECK: pop {r7, pc}13 br i1 undef, label %if.else, label %if.then14 15if.then: ; preds = %entry16 %mul73 = fmul double %a, 0.000000e+0017 %sub76 = fsub double %mul73, %mul7318 store double %sub76, ptr undef, align 419 %call88 = tail call double @cos(double 0.000000e+00) nounwind20 %mul89 = fmul double %call88, %call8821 %sub92 = fsub double %mul89, %mul8922 store double %sub92, ptr undef, align 423 ret void24 25if.else: ; preds = %entry26 %tmp101 = tail call double @llvm.pow.f64(double undef, double 0x3FD5555555555555)27 %add112 = fadd double %tmp101, %tmp10128 %mul118 = fmul double %add112, %add11229 store double 0.000000e+00, ptr %x, align 430 ret void31}32 33declare double @cos(double) readnone34declare double @llvm.pow.f64(double, double) nounwind readonly35