projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47b6dc4
)
[X86][Driver] Do not add `-evex512` for `-march=native` when the target doesn't suppo...
author
Phoebe Wang
<phoebe.wang@intel.com>
Fri, 10 May 2024 05:25:37 +0000
(13:25 +0800)
committer
Tom Stellard
<tstellar@redhat.com>
Tue, 14 May 2024 23:26:16 +0000
(16:26 -0700)
(cherry picked from commit
87f3407856e61a73798af4e41b28bc33b5bf4ce6
)
llvm/lib/TargetParser/Host.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/TargetParser/Host.cpp
b/llvm/lib/TargetParser/Host.cpp
index 1adef15771fa17414b4e6b100521c36c9de698a0..848b531dd8dd9ff694f2e04de2a1b0484be5f344 100644
(file)
--- a/
llvm/lib/TargetParser/Host.cpp
+++ b/
llvm/lib/TargetParser/Host.cpp
@@
-1774,7
+1774,8
@@
bool sys::getHostCPUFeatures(StringMap<bool> &Features) {
Features["rtm"] = HasLeaf7 && ((EBX >> 11) & 1);
// AVX512 is only supported if the OS supports the context save for it.
Features["avx512f"] = HasLeaf7 && ((EBX >> 16) & 1) && HasAVX512Save;
- Features["evex512"] = Features["avx512f"];
+ if (Features["avx512f"])
+ Features["evex512"] = true;
Features["avx512dq"] = HasLeaf7 && ((EBX >> 17) & 1) && HasAVX512Save;
Features["rdseed"] = HasLeaf7 && ((EBX >> 18) & 1);
Features["adx"] = HasLeaf7 && ((EBX >> 19) & 1);