[clang] [compiler-rt] [llvm] [X86][TargetParser] Widen CPU feature mask (PR #248033)
Phoebe Wang via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 4 07:01:18 PST 2026
================
@@ -1288,9 +1288,8 @@ int CONSTRUCTOR_ATTRIBUTE __cpu_indicator_init(void) {
getAvailableFeatures(ECX, EDX, MaxLeaf, &Features[0]);
__cpu_model.__cpu_features[0] = Features[0];
- __cpu_features2[0] = Features[1];
- __cpu_features2[1] = Features[2];
- __cpu_features2[2] = Features[3];
+ for (unsigned I = 1; I != sizeof(Features) / sizeof(Features[0]); ++I)
+ __cpu_features2[I - 1] = Features[I];
----------------
phoebewang wrote:
Do we have size limitation for __cpu_features2?
https://github.com/llvm/llvm-project/pull/248033
More information about the cfe-commits
mailing list