Skip to content

Commit 47fc132

Browse files
committed
Remove misleading target feature aliases
1 parent 6c991b0 commit 47fc132

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

compiler/rustc_codegen_llvm/src/llvm_util.rs

-6
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,6 @@ pub fn to_llvm_features<'a>(sess: &Session, s: &'a str) -> SmallVec<[&'a str; 2]
163163
("x86", "rdrand") => smallvec!["rdrnd"],
164164
("x86", "bmi1") => smallvec!["bmi"],
165165
("x86", "cmpxchg16b") => smallvec!["cx16"],
166-
// FIXME: These aliases are misleading, and should be removed before avx512_target_feature is
167-
// stabilized. They must remain until std::arch switches off them.
168-
// rust#100752
169-
("x86", "avx512vaes") => smallvec!["vaes"],
170-
("x86", "avx512gfni") => smallvec!["gfni"],
171-
("x86", "avx512vpclmulqdq") => smallvec!["vpclmulqdq"],
172166
("aarch64", "rcpc2") => smallvec!["rcpc-immo"],
173167
("aarch64", "dpb") => smallvec!["ccpp"],
174168
("aarch64", "dpb2") => smallvec!["ccdp"],

compiler/rustc_codegen_ssa/src/target_features.rs

-3
Original file line numberDiff line numberDiff line change
@@ -172,16 +172,13 @@ const X86_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
172172
("avx512dq", Some(sym::avx512_target_feature)),
173173
("avx512er", Some(sym::avx512_target_feature)),
174174
("avx512f", Some(sym::avx512_target_feature)),
175-
("avx512gfni", Some(sym::avx512_target_feature)),
176175
("avx512ifma", Some(sym::avx512_target_feature)),
177176
("avx512pf", Some(sym::avx512_target_feature)),
178-
("avx512vaes", Some(sym::avx512_target_feature)),
179177
("avx512vbmi", Some(sym::avx512_target_feature)),
180178
("avx512vbmi2", Some(sym::avx512_target_feature)),
181179
("avx512vl", Some(sym::avx512_target_feature)),
182180
("avx512vnni", Some(sym::avx512_target_feature)),
183181
("avx512vp2intersect", Some(sym::avx512_target_feature)),
184-
("avx512vpclmulqdq", Some(sym::avx512_target_feature)),
185182
("avx512vpopcntdq", Some(sym::avx512_target_feature)),
186183
("bmi1", None),
187184
("bmi2", None),

0 commit comments

Comments
 (0)