brintos

brintos / llvm-project-archived public Read only

0
0
Text · 589 B · 74ca79f Raw
17 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt < %s -passes=instcombine -S | FileCheck %s3 4define double @mypow(double %x, double %y) {5; CHECK-LABEL: @mypow(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]]9;10  %call = call double @exp(double %x)11  %pow = call double @llvm.pow.f64(double %call, double %y)12  ret double %pow13}14 15declare double @exp(double) #116declare double @llvm.pow.f64(double, double)17