1 ; RUN: opt < %s -instcombine -S | FileCheck %s
3 define double @mylog(double %x, double %y) {
5 %pow = call double @llvm.pow.f64(double %x, double %y)
6 %call = call double @log(double %pow)
10 ; CHECK-LABEL: define double @mylog(
11 ; CHECK: %pow = call double @llvm.pow.f64(double %x, double %y)
12 ; CHECK: %call = call double @log(double %pow)
13 ; CHECK: ret double %call
16 define double @test3(double %x) {
17 %call2 = call double @exp2(double %x)
18 %call3 = call double @log(double %call2)
23 ; CHECK: %call2 = call double @exp2(double %x)
24 ; CHECK: %call3 = call double @log(double %call2)
25 ; CHECK: ret double %call3
28 declare double @log(double)
29 declare double @exp2(double)
30 declare double @llvm.pow.f64(double, double)