[compiler-rt] [FMV][compiler-rt] Fix cpu features initialization. (PR #95149)

Jon Roelofs via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 12 10:17:44 PDT 2024


================
@@ -52,23 +45,20 @@ static void __init_cpu_features_constructor(unsigned long hwcap,
     setCPUFeature(FEAT_FCMA);
   if (hwcap & HWCAP_SB)
     setCPUFeature(FEAT_SB);
-  if (hwcap & HWCAP_SSBS)
+  if (hwcap & HWCAP_SSBS) {
+    setCPUFeature(FEAT_SSBS);
----------------
jroelofs wrote:

Never mind. They are independent features as far as FMV should be concerned, and M1 only implements SSBS2.

https://github.com/llvm/llvm-project/pull/95149


More information about the llvm-commits mailing list