aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2013-01-17 18:27:30 +0000
committerAaron Ballman <aaron@aaronballman.com>2013-01-17 18:27:30 +0000
commit67828056ddfcfe089f9b5448839137508e39ac32 (patch)
tree12a0c0d6126a14cd0a7e9a15d5d31991ab1868d9 /include
parent792b1233384da442e6c75cf580bd1927123a56f3 (diff)
Reverting back to the fallback instead of using popcnt; this instruction doesn't exist on all CPU architectures. Fixes PR14982
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172734 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-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 b8631a5697..340b7741b1 100644
--- a/include/llvm/Support/MathExtras.h
+++ b/include/llvm/Support/MathExtras.h
@@ -303,8 +303,6 @@ inline unsigned CountTrailingOnes_64(uint64_t Value) {
inline unsigned CountPopulation_32(uint32_t Value) {
#if __GNUC__ >= 4
return __builtin_popcount(Value);
-#elif defined(_MSC_VER)
- return __popcnt(Value);
#else
uint32_t v = Value - ((Value >> 1) & 0x55555555);
v = (v & 0x33333333) + ((v >> 2) & 0x33333333);