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 fast float @sqrtf(float %mul)
13 ; CHECK-NEXT: call fast float @llvm.fabs.f32
14 ; CHECK-NEXT: ret float
17 declare float @sqrtf(float)