@@ -109,9 +109,8 @@ define float @cosf_unary_negated_arg_FMF(float %x) {
109
109
110
110
define double @cos_unary_fabs_arg (double %x ) {
111
111
; 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]]
115
114
;
116
115
%fabs = tail call double @llvm.fabs.f64 (double %x )
117
116
%r = call double @cos (double %fabs )
@@ -120,9 +119,8 @@ define double @cos_unary_fabs_arg(double %x) {
120
119
121
120
define float @cosf_unary_fabs_arg (float %x ) {
122
121
; 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]]
126
124
;
127
125
%fabs = tail call float @llvm.fabs.f32 (float %x )
128
126
%r = call float @cosf (float %fabs )
@@ -131,9 +129,8 @@ define float @cosf_unary_fabs_arg(float %x) {
131
129
132
130
define float @cosf_unary_fabs_arg_FMF (float %x ) {
133
131
; 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]]
137
134
;
138
135
%fabs = tail call float @llvm.fabs.f32 (float %x )
139
136
%r = call nnan reassoc float @cosf (float %fabs )
0 commit comments