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

Jon Roelofs via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 13 06:05:42 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:

Oh wow, that wording is confusing (the Arm ARM's, not yours).

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


More information about the llvm-commits mailing list