1 ; RUN: opt < %s -inline -instcombine -S | FileCheck %s
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.
7 define float @bar(float %f) #0 {
8 %mul = fmul fast float %f, %f
9 %call1 = call float @sqrtf(float %mul) #0
13 ; CHECK-NEXT: call float @llvm.fabs.f32
14 ; CHECK-NEXT: ret float
17 declare float @sqrtf(float) #0
19 attributes #0 = { readnone "unsafe-fp-math"="true" }