1 ; RUN: opt < %s -inline -instcombine -S | FileCheck %s
3 ; PR22857: http://llvm.org/bugs/show_bug.cgi?id=22857
4 ; The inliner should not add an edge to an intrinsic and
5 ; then assert that it did not add an edge to an intrinsic!
7 define float @foo(float %f1) {
8 %call = call float @bar(float %f1)
12 ; CHECK-NEXT: call fast float @llvm.fabs.f32
13 ; CHECK-NEXT: ret float
16 define float @bar(float %f1) {
17 %call = call float @sqr(float %f1)
18 %call1 = call fast float @sqrtf(float %call)
22 define float @sqr(float %f) {
23 %mul = fmul fast float %f, %f
27 declare float @sqrtf(float)