diff options
author | Craig Topper <craig.topper@intel.com> | 2019-08-29 18:09:02 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2019-08-29 18:09:02 +0000 |
commit | 5a43fdd3139640116fc18d82cb1b6d2788def156 (patch) | |
tree | c684171e093f6ca34306a690b53bb1e525d01e72 /llvm/lib/Support/Host.cpp | |
parent | 093ebf927569a7d79991716cc786aa2c9250d012 (diff) | |
download | bcm5719-llvm-5a43fdd3139640116fc18d82cb1b6d2788def156.tar.gz bcm5719-llvm-5a43fdd3139640116fc18d82cb1b6d2788def156.zip |
[X86] Remove what little support we had for MPX
-Deprecate -mmpx and -mno-mpx command line options
-Remove CPUID detection of mpx for -march=native
-Remove MPX from all CPUs
-Remove MPX preprocessor define
I've left the "mpx" string in the backend so we don't fail on old IR, but its not connected to anything.
gcc has also deprecated these command line options. https://www.phoronix.com/scan.php?page=news_item&px=GCC-Patch-To-Drop-MPX
Differential Revision: https://reviews.llvm.org/D66669
llvm-svn: 370393
Diffstat (limited to 'llvm/lib/Support/Host.cpp')
-rw-r--r-- | llvm/lib/Support/Host.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp index 836b363efd9..ef10b9689e8 100644 --- a/llvm/lib/Support/Host.cpp +++ b/llvm/lib/Support/Host.cpp @@ -1378,7 +1378,6 @@ bool sys::getHostCPUFeatures(StringMap<bool> &Features) { Features["bmi2"] = HasLeaf7 && ((EBX >> 8) & 1); Features["invpcid"] = HasLeaf7 && ((EBX >> 10) & 1); Features["rtm"] = HasLeaf7 && ((EBX >> 11) & 1); - Features["mpx"] = HasLeaf7 && ((EBX >> 14) & 1); // AVX512 is only supported if the OS supports the context save for it. Features["avx512f"] = HasLeaf7 && ((EBX >> 16) & 1) && HasAVX512Save; Features["avx512dq"] = HasLeaf7 && ((EBX >> 17) & 1) && HasAVX512Save; |