Skip to content

Commit dec6fe3

Browse files
authored
Revert "[SPIRV] Add radians intrinsic" (#111398)
Reverts #110800 `llvm\test\CodeGen\DirectX\radians.ll` is failing after this change. @adam-yang please send a new PR with the issue resolved once you've had time to investigate.
1 parent 1f17c2d commit dec6fe3

File tree

4 files changed

+0
-102
lines changed

4 files changed

+0
-102
lines changed

llvm/include/llvm/IR/IntrinsicsSPIRV.td

-1
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,4 @@ let TargetPrefix = "spv" in {
8484
[IntrNoMem, Commutative] >;
8585
def int_spv_wave_is_first_lane : DefaultAttrsIntrinsic<[llvm_i1_ty], [], [IntrConvergent]>;
8686
def int_spv_sign : DefaultAttrsIntrinsic<[LLVMScalarOrSameVectorWidth<0, llvm_i32_ty>], [llvm_any_ty], [IntrNoMem]>;
87-
def int_spv_radians : DefaultAttrsIntrinsic<[LLVMMatchType<0>], [llvm_anyfloat_ty], [IntrNoMem]>;
8887
}

llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -2537,8 +2537,6 @@ bool SPIRVInstructionSelector::selectIntrinsic(Register ResVReg,
25372537
}
25382538
case Intrinsic::spv_step:
25392539
return selectExtInst(ResVReg, ResType, I, CL::step, GL::Step);
2540-
case Intrinsic::spv_radians:
2541-
return selectExtInst(ResVReg, ResType, I, CL::radians, GL::Radians);
25422540
// Discard intrinsics which we do not expect to actually represent code after
25432541
// lowering or intrinsics which are not implemented but should not crash when
25442542
// found in a customer's LLVM IR input.

llvm/test/CodeGen/SPIRV/hlsl-intrinsics/radians.ll

-48
This file was deleted.

llvm/test/CodeGen/SPIRV/opencl/radians.ll

-51
This file was deleted.

0 commit comments

Comments
 (0)