1 ; RUN: opt < %s -passes=instcombine -S | FileCheck %s
2 ; This is a check to assure the attributes of `pow` do
3 ; not get passed to sqrt.
5 define void @pow_to_sqrt(double %x) {
6 ; CHECK-LABEL: @pow_to_sqrt(
7 ; CHECK-NEXT: [[SQRT:%.*]] = call afn double @sqrt(double [[X:%.*]])
10 %call = call afn double @pow(double %x, double 1.5)
14 declare double @pow(double noundef, double noundef)