Skip to content

Commit 7ed99c7

Browse files
committed
exclude erf* libm intrinsics from hook table
1 parent ebc143b commit 7ed99c7

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

crates/rustc_codegen_spirv/src/builder/libm_intrinsics.rs

-16
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ use rustc_codegen_ssa::traits::BuilderMethods;
77
pub enum LibmCustomIntrinsic {
88
CopySign,
99
Cbrt,
10-
Erf,
11-
Erfc,
1210
Exp10,
1311
Expm1,
1412
Fdim,
@@ -70,10 +68,6 @@ pub const TABLE: &[(&str, LibmIntrinsic)] = &[
7068
("cosf", LibmIntrinsic::GLOp(GLOp::Cos)),
7169
("cosh", LibmIntrinsic::GLOp(GLOp::Cosh)),
7270
("coshf", LibmIntrinsic::GLOp(GLOp::Cosh)),
73-
("erf", LibmIntrinsic::Custom(LibmCustomIntrinsic::Erf)),
74-
("erff", LibmIntrinsic::Custom(LibmCustomIntrinsic::Erf)),
75-
("erfc", LibmIntrinsic::Custom(LibmCustomIntrinsic::Erfc)),
76-
("erfcf", LibmIntrinsic::Custom(LibmCustomIntrinsic::Erfc)),
7771
("exp10", LibmIntrinsic::Custom(LibmCustomIntrinsic::Exp10)),
7872
("exp10f", LibmIntrinsic::Custom(LibmCustomIntrinsic::Exp10)),
7973
("exp2", LibmIntrinsic::GLOp(GLOp::Exp2)),
@@ -258,16 +252,6 @@ impl Builder<'_, '_> {
258252
let one = self.constant_float(exp.ty, 1.0);
259253
self.sub(exp, one)
260254
}
261-
LibmIntrinsic::Custom(LibmCustomIntrinsic::Erf) => {
262-
let undef = self.undef(result_type);
263-
self.zombie(undef.def(self), "Erf not supported yet");
264-
undef
265-
}
266-
LibmIntrinsic::Custom(LibmCustomIntrinsic::Erfc) => {
267-
let undef = self.undef(result_type);
268-
self.zombie(undef.def(self), "Erfc not supported yet");
269-
undef
270-
}
271255
LibmIntrinsic::Custom(LibmCustomIntrinsic::Fdim) => {
272256
let undef = self.undef(result_type);
273257
self.zombie(undef.def(self), "Fdim not supported yet");

0 commit comments

Comments
 (0)