[llvm] r229415 - We require MSVC 1800 as our minimum, so these checks can safely go away; NFC.
Aaron Ballman
aaron at aaronballman.com
Mon Feb 16 10:23:00 PST 2015
Author: aaronballman
Date: Mon Feb 16 12:23:00 2015
New Revision: 229415
URL: http://llvm.org/viewvc/llvm-project?rev=229415&view=rev
Log:
We require MSVC 1800 as our minimum, so these checks can safely go away; NFC.
Modified:
llvm/trunk/lib/Support/Host.cpp
Modified: llvm/trunk/lib/Support/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Host.cpp?rev=229415&r1=229414&r2=229415&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Host.cpp (original)
+++ llvm/trunk/lib/Support/Host.cpp Mon Feb 16 12:23:00 2015
@@ -137,18 +137,13 @@ static bool GetX86CpuIDAndInfoEx(unsigne
"c" (subleaf));
return false;
#elif defined(_MSC_VER)
- // __cpuidex was added in MSVC++ 9.0 SP1
- #if (_MSC_VER > 1500) || (_MSC_VER == 1500 && _MSC_FULL_VER >= 150030729)
- int registers[4];
- __cpuidex(registers, value, subleaf);
- *rEAX = registers[0];
- *rEBX = registers[1];
- *rECX = registers[2];
- *rEDX = registers[3];
- return false;
- #else
- return true;
- #endif
+ int registers[4];
+ __cpuidex(registers, value, subleaf);
+ *rEAX = registers[0];
+ *rEBX = registers[1];
+ *rECX = registers[2];
+ *rEDX = registers[3];
+ return false;
#else
return true;
#endif
More information about the llvm-commits
mailing list