diff options
author | Shuxin Yang <shuxin.llvm@gmail.com> | 2012-12-13 23:16:19 +0000 |
---|---|---|
committer | Shuxin Yang <shuxin.llvm@gmail.com> | 2012-12-13 23:16:19 +0000 |
commit | 97e07bf211c33c2aafde1b09333e55f7630eb3a2 (patch) | |
tree | c1a262eeac42f6119c56093c4077fdd6f6be6f00 | |
parent | e5e28b48c8f9cfc14f2c4a6658e41bed736338bf (diff) | |
download | bcm5719-llvm-97e07bf211c33c2aafde1b09333e55f7630eb3a2.tar.gz bcm5719-llvm-97e07bf211c33c2aafde1b09333e55f7630eb3a2.zip |
Remove two popcount patterns which we are already able to recognize.
llvm-svn: 170158
-rw-r--r-- | llvm/lib/Target/README.txt | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/llvm/lib/Target/README.txt b/llvm/lib/Target/README.txt index 8165f5b8cc9..a9aab86abda 100644 --- a/llvm/lib/Target/README.txt +++ b/llvm/lib/Target/README.txt @@ -262,22 +262,7 @@ unsigned countbits_slow(unsigned v) { c += v & 1; return c; } -unsigned countbits_fast(unsigned v){ - unsigned c; - for (c = 0; v; c++) - v &= v - 1; // clear the least significant bit set - return c; -} -BITBOARD = unsigned long long -int PopCnt(register BITBOARD a) { - register int c=0; - while(a) { - c++; - a &= a - 1; - } - return c; -} unsigned int popcount(unsigned int input) { unsigned int count = 0; for (unsigned int i = 0; i < 4 * 8; i++) |