Skip to content

Commit 93fdecf

Browse files
committed
No more double support
1 parent 12d3ab7 commit 93fdecf

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,6 @@ static Value *expandRadiansIntrinsic(CallInst *Orig) {
410410
Value *X = Orig->getOperand(0);
411411
Type *Ty = X->getType();
412412
IRBuilder<> Builder(Orig);
413-
414413
Value *OneEightyOverPi = ConstantFP::get(Ty, llvm::numbers::pi / 180.0);
415414
return Builder.CreateFMul(X, OneEightyOverPi);
416415
}

llvm/test/CodeGen/DirectX/radians.ll

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33

44
declare half @llvm.dx.radians.f16(half)
55
declare float @llvm.dx.radians.f32(float)
6-
declare double @llvm.dx.radians.f64(double)
76

87
declare <4 x half> @llvm.dx.radians.v4f16(<4 x half>)
98
declare <4 x float> @llvm.dx.radians.v4f32(<4 x float>)
10-
declare <4 x double> @llvm.dx.radians.v4f64(<4 x double>)
119

1210
define noundef half @radians_half(half noundef %a) {
1311
; CHECK-LABEL: define noundef half @radians_half(
@@ -33,18 +31,6 @@ entry:
3331
ret float %elt.radians
3432
}
3533

36-
define noundef double @radians_double(double noundef %a) {
37-
; CHECK-LABEL: define noundef double @radians_double(
38-
; CHECK-SAME: double noundef [[A:%.*]]) {
39-
; CHECK-NEXT: [[ENTRY:.*:]]
40-
; CHECK-NEXT: [[TMP0:%.*]] = fmul double [[A]], 0x3F91DF46A2529D39
41-
; CHECK-NEXT: ret double [[TMP0]]
42-
;
43-
entry:
44-
%elt.radians = call double @llvm.dx.radians.f64(double %a)
45-
ret double %elt.radians
46-
}
47-
4834
define noundef <4 x half> @radians_half_vector(<4 x half> noundef %a) {
4935
; CHECK-LABEL: define noundef <4 x half> @radians_half_vector(
5036
; CHECK-SAME: <4 x half> noundef [[A:%.*]]) {
@@ -68,15 +54,3 @@ entry:
6854
%elt.radians = call <4 x float> @llvm.dx.radians.v4f32(<4 x float> %a)
6955
ret <4 x float> %elt.radians
7056
}
71-
72-
define noundef <4 x double> @radians_double_vector(<4 x double> noundef %a) {
73-
; CHECK-LABEL: define noundef <4 x double> @radians_double_vector(
74-
; CHECK-SAME: <4 x double> noundef [[A:%.*]]) {
75-
; CHECK-NEXT: [[ENTRY:.*:]]
76-
; CHECK-NEXT: [[TMP0:%.*]] = fmul <4 x double> [[A]], <double 0x3F91DF46A2529D39, double 0x3F91DF46A2529D39, double 0x3F91DF46A2529D39, double 0x3F91DF46A2529D39>
77-
; CHECK-NEXT: ret <4 x double> [[TMP0]]
78-
;
79-
entry:
80-
%elt.radians = call <4 x double> @llvm.dx.radians.v4f64(<4 x double> %a)
81-
ret <4 x double> %elt.radians
82-
}

0 commit comments

Comments
 (0)