• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt < %s -instcombine -S | FileCheck %s
2
3define double @mypow(double %x) #0 {
4entry:
5  %pow = call double @llvm.pow.f64(double %x, double 5.000000e-01)
6  ret double %pow
7}
8
9; CHECK-LABEL: define double @mypow(
10; CHECK:   %sqrt = call double @sqrt(double %x) #1
11; CHECK:   ret double %sqrt
12; CHECK: }
13
14declare double @llvm.pow.f64(double, double)
15attributes #0 = { "unsafe-fp-math"="true" }
16