Skip to content

Commit 915ca5b

Browse files
committed
SSE4, TBM, and ADX do not need feature flags
1 parent b654b1d commit 915ca5b

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/librustc_codegen_llvm/llvm_util.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ const AARCH64_WHITELIST: &[(&str, Option<Symbol>)] = &[
129129
];
130130

131131
const X86_WHITELIST: &[(&str, Option<Symbol>)] = &[
132-
("adx", Some(sym::adx_target_feature)),
132+
("adx", None),
133133
("aes", None),
134134
("avx", None),
135135
("avx2", None),
@@ -163,9 +163,9 @@ const X86_WHITELIST: &[(&str, Option<Symbol>)] = &[
163163
("sse3", None),
164164
("sse4.1", None),
165165
("sse4.2", None),
166-
("sse4a", Some(sym::sse4a_target_feature)),
166+
("sse4a", None),
167167
("ssse3", None),
168-
("tbm", Some(sym::tbm_target_feature)),
168+
("tbm", None),
169169
("xsave", None),
170170
("xsavec", None),
171171
("xsaveopt", None),

src/librustc_typeck/collect.rs

-5
Original file line numberDiff line numberDiff line change
@@ -2367,11 +2367,6 @@ fn from_target_feature(
23672367
Some(sym::movbe_target_feature) => rust_features.movbe_target_feature,
23682368
Some(sym::rtm_target_feature) => rust_features.rtm_target_feature,
23692369
Some(sym::f16c_target_feature) => rust_features.f16c_target_feature,
2370-
// These are stable:
2371-
| Some(sym::sse4a_target_feature)
2372-
| Some(sym::tbm_target_feature)
2373-
| Some(sym::adx_target_feature)
2374-
=> true,
23752370
Some(name) => bug!("unknown target feature gate {}", name),
23762371
None => true,
23772372
};

0 commit comments

Comments
 (0)