summaryrefslogtreecommitdiff
path: root/lib/Target/README.txt
diff options
context:
space:
mode:
authorShuxin Yang <shuxin.llvm@gmail.com>2012-12-13 23:16:19 +0000
committerShuxin Yang <shuxin.llvm@gmail.com>2012-12-13 23:16:19 +0000
commit200e2370dc1b9216bbf1320ed7c14f9f035a6bd6 (patch)
tree34f4ba5c6fc16d87769484f6204b905712326e48 /lib/Target/README.txt
parent9ad73e93a51c473a90e010a489a9c7c221112030 (diff)
Remove two popcount patterns which we are already able to recognize.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/README.txt')
-rw-r--r--lib/Target/README.txt15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/Target/README.txt b/lib/Target/README.txt
index 8165f5b8cc9..a9aab86abda 100644
--- a/lib/Target/README.txt
+++ b/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++)