19 lines · plain
1; RUN: opt < %s -passes=inline,instcombine -S | FileCheck %s2 3; PR21403: http://llvm.org/bugs/show_bug.cgi?id=214034; When the call to sqrtf is replaced by an intrinsic call to fabs,5; it should not cause a problem in CGSCC.6 7define float @bar(float %f) #0 {8 %mul = fmul fast float %f, %f9 %call1 = call fast float @sqrtf(float %mul)10 ret float %call111 12; CHECK-LABEL: @bar(13; CHECK-NEXT: call fast float @llvm.fabs.f3214; CHECK-NEXT: ret float15}16 17declare float @sqrtf(float)18 19