about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDevJPM <jean-pierre.muench@web.de>2020-11-15 11:34:08 +0100
committerDevJPM <jean-pierre.muench@web.de>2020-11-15 11:34:08 +0100
commit72b83af2ffadbc98fee52481c7168b0b644d73db (patch)
tree9a8e735e48b988439edf60147e0722708c1738b9
parent3daa93f555f4dab102da2a8d05cc38c4087166af (diff)
downloadrust-72b83af2ffadbc98fee52481c7168b0b644d73db.tar.gz
rust-72b83af2ffadbc98fee52481c7168b0b644d73db.zip
Re-enable LLVM 9 target features with LLVM 9 being the minimum now
With #78848 merged, the minimum supported LLVM version is now 9
which means we can actually use the target features introduced in LLVM 9
-rw-r--r--compiler/rustc_codegen_ssa/src/target_features.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/target_features.rs b/compiler/rustc_codegen_ssa/src/target_features.rs
index e624768824b..cef96620884 100644
--- a/compiler/rustc_codegen_ssa/src/target_features.rs
+++ b/compiler/rustc_codegen_ssa/src/target_features.rs
@@ -55,7 +55,7 @@ const X86_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
     ("aes", None),
     ("avx", None),
     ("avx2", None),
-    //("avx512bf16", Some(sym::avx512_target_feature)), // this seems to be unsupported by the supported build with external LLVM 8, LLVM 9 should be sufficient though
+    ("avx512bf16", Some(sym::avx512_target_feature)),
     ("avx512bitalg", Some(sym::avx512_target_feature)),
     ("avx512bw", Some(sym::avx512_target_feature)),
     ("avx512cd", Some(sym::avx512_target_feature)),
@@ -70,7 +70,7 @@ const X86_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
     ("avx512vbmi2", Some(sym::avx512_target_feature)),
     ("avx512vl", Some(sym::avx512_target_feature)),
     ("avx512vnni", Some(sym::avx512_target_feature)),
-    //("avx512vp2intersect", Some(sym::avx512_target_feature)), // this seems to be unsupported by the supported build with external LLVM 8, LLVM 9 should be sufficient though
+    ("avx512vp2intersect", Some(sym::avx512_target_feature)),
     ("avx512vpclmulqdq", Some(sym::avx512_target_feature)),
     ("avx512vpopcntdq", Some(sym::avx512_target_feature)),
     ("bmi1", None),