1 ; RUN: opt < %s -instcombine -S | FileCheck %s 2 3 define double @mypow(double %x, double %y) #0 { 4 entry: 5 %call = call double @exp2(double %x) 6 %pow = call double @llvm.pow.f64(double %call, double %y) 7 ret double %pow 8 } 9 10 ; CHECK-LABEL: define double @mypow( 11 ; CHECK: %mul = fmul fast double %x, %y 12 ; CHECK: %exp2 = call fast double @exp2(double %mul) #0 13 ; CHECK: ret double %exp2 14 ; CHECK: } 15 16 declare double @exp2(double) #1 17 declare double @llvm.pow.f64(double, double) 18 attributes #0 = { "unsafe-fp-math"="true" } 19 attributes #1 = { "unsafe-fp-math"="true" } 20