reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ; RUN: opt -instcombine -S < %s | FileCheck %s define double @test1() { %sin = call double @__sinpi(double 1.0) ret double %sin } ; CHECK-LABEL: define double @test1( ; CHECK: %[[sin:.*]] = call double @__sinpi(double 1.000000e+00) ; CHECK-NEXT: ret double %[[sin]] define double @test2() { %cos = call double @__cospi(double 1.0) ret double %cos } ; CHECK-LABEL: define double @test2( ; CHECK: %[[cos:.*]] = call double @__cospi(double 1.000000e+00) ; CHECK-NEXT: ret double %[[cos]] declare double @__sinpi(double %x) #0 declare double @__cospi(double %x) #0 attributes #0 = { readnone nounwind } |