1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -instcombine -S | FileCheck %s
4 define double @mypow(double %x, double %y) {
6 ; CHECK-NEXT: [[CALL:%.*]] = call double @exp(double [[X:%.*]])
7 ; CHECK-NEXT: [[POW:%.*]] = call double @llvm.pow.f64(double [[CALL]], double [[Y:%.*]])
8 ; CHECK-NEXT: ret double [[POW]]
10 %call = call double @exp(double %x)
11 %pow = call double @llvm.pow.f64(double %call, double %y)
15 declare double @exp(double) #1
16 declare double @llvm.pow.f64(double, double)