@@ -109,9 +109,8 @@ define float @cosf_unary_negated_arg_FMF(float %x) {
109109
110110define double @cos_unary_fabs_arg (double %x ) {
111111; ANY-LABEL: @cos_unary_fabs_arg(
112- ; ANY-NEXT: [[FABS:%.*]] = tail call double @llvm.fabs.f64(double [[X:%.*]])
113- ; ANY-NEXT: [[R:%.*]] = call double @cos(double [[FABS]])
114- ; ANY-NEXT: ret double [[R]]
112+ ; ANY-NEXT: [[COS:%.*]] = call double @cos(double [[X:%.*]])
113+ ; ANY-NEXT: ret double [[COS]]
115114;
116115 %fabs = tail call double @llvm.fabs.f64 (double %x )
117116 %r = call double @cos (double %fabs )
@@ -120,9 +119,8 @@ define double @cos_unary_fabs_arg(double %x) {
120119
121120define float @cosf_unary_fabs_arg (float %x ) {
122121; ANY-LABEL: @cosf_unary_fabs_arg(
123- ; ANY-NEXT: [[FABS:%.*]] = tail call float @llvm.fabs.f32(float [[X:%.*]])
124- ; ANY-NEXT: [[R:%.*]] = call float @cosf(float [[FABS]])
125- ; ANY-NEXT: ret float [[R]]
122+ ; ANY-NEXT: [[COS:%.*]] = call float @cosf(float [[X:%.*]])
123+ ; ANY-NEXT: ret float [[COS]]
126124;
127125 %fabs = tail call float @llvm.fabs.f32 (float %x )
128126 %r = call float @cosf (float %fabs )
@@ -131,9 +129,8 @@ define float @cosf_unary_fabs_arg(float %x) {
131129
132130define float @cosf_unary_fabs_arg_FMF (float %x ) {
133131; ANY-LABEL: @cosf_unary_fabs_arg_FMF(
134- ; ANY-NEXT: [[FABS:%.*]] = tail call float @llvm.fabs.f32(float [[X:%.*]])
135- ; ANY-NEXT: [[R:%.*]] = call reassoc nnan float @cosf(float [[FABS]])
136- ; ANY-NEXT: ret float [[R]]
132+ ; ANY-NEXT: [[COS:%.*]] = call reassoc nnan float @cosf(float [[X:%.*]])
133+ ; ANY-NEXT: ret float [[COS]]
137134;
138135 %fabs = tail call float @llvm.fabs.f32 (float %x )
139136 %r = call nnan reassoc float @cosf (float %fabs )
0 commit comments