1; RUN: opt < %s -inline -instcombine -S | FileCheck %s 2 3; PR21403: http://llvm.org/bugs/show_bug.cgi?id=21403 4; 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, %f 9 %call1 = call float @sqrtf(float %mul) #0 10 ret float %call1 11 12; CHECK-LABEL: @bar( 13; CHECK-NEXT: call float @llvm.fabs.f32 14; CHECK-NEXT: ret float 15} 16 17declare float @sqrtf(float) #0 18 19attributes #0 = { readnone "unsafe-fp-math"="true" } 20