diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2013-01-17 18:27:30 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2013-01-17 18:27:30 +0000 |
| commit | 892a8ebf32d00a5c8516139a976d38bb69b31092 (patch) | |
| tree | 2820d8acc854ade84de59d09ca82b101eb2f4c0d | |
| parent | 6b2940b01ebc42a0c9069b0e3e5e876f8dc7d868 (diff) | |
| download | bcm5719-llvm-892a8ebf32d00a5c8516139a976d38bb69b31092.tar.gz bcm5719-llvm-892a8ebf32d00a5c8516139a976d38bb69b31092.zip | |
Reverting back to the fallback instead of using popcnt; this instruction doesn't exist on all CPU architectures. Fixes PR14982
llvm-svn: 172734
| -rw-r--r-- | llvm/include/llvm/Support/MathExtras.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/MathExtras.h b/llvm/include/llvm/Support/MathExtras.h index b8631a56970..340b7741b1b 100644 --- a/llvm/include/llvm/Support/MathExtras.h +++ b/llvm/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); |

