aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2013-01-17 20:04:28 +0000
committerAaron Ballman <aaron@aaronballman.com>2013-01-17 20:04:28 +0000
commitcb4830cc99e790e0a76e1a9b1414e4b7e6e06134 (patch)
treefdd5518cde1942893c738c72cc295e8456fe8a1b
parent634bd8512a6576f9426713b72ce98904d159fd8a (diff)
downloadexternal_llvm-cb4830cc99e790e0a76e1a9b1414e4b7e6e06134.zip
external_llvm-cb4830cc99e790e0a76e1a9b1414e4b7e6e06134.tar.gz
external_llvm-cb4830cc99e790e0a76e1a9b1414e4b7e6e06134.tar.bz2
Reverting back to the fallback instead of using the 64-bit popcnt instruction as it doesn't exist on all x64 CPU architectures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172751 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/MathExtras.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h
index 340b774..190df1f 100644
--- a/include/llvm/Support/MathExtras.h
+++ b/include/llvm/Support/MathExtras.h
@@ -315,8 +315,6 @@ inline unsigned CountPopulation_32(uint32_t Value) {
inline unsigned CountPopulation_64(uint64_t Value) {
#if __GNUC__ >= 4
return __builtin_popcountll(Value);
-#elif defined(_MSC_VER) && defined(_M_X64)
- return __popcnt64(Value);
#else
uint64_t v = Value - ((Value >> 1) & 0x5555555555555555ULL);
v = (v & 0x3333333333333333ULL) + ((v >> 2) & 0x3333333333333333ULL);