no_cgscc_assert.ll 523 B

12345678910111213141516171819
  1. ; RUN: opt < %s -inline -instcombine -S | FileCheck %s
  2. ; PR21403: http://llvm.org/bugs/show_bug.cgi?id=21403
  3. ; When the call to sqrtf is replaced by an intrinsic call to fabs,
  4. ; it should not cause a problem in CGSCC.
  5. define float @bar(float %f) #0 {
  6. %mul = fmul fast float %f, %f
  7. %call1 = call float @sqrtf(float %mul) #0
  8. ret float %call1
  9. ; CHECK-LABEL: @bar(
  10. ; CHECK-NEXT: call float @llvm.fabs.f32
  11. ; CHECK-NEXT: ret float
  12. }
  13. declare float @sqrtf(float) #0
  14. attributes #0 = { readnone "unsafe-fp-math"="true" }