Remove two popcount patterns which we are already able to recognize.
authorShuxin Yang <shuxin.llvm@gmail.com>
Thu, 13 Dec 2012 23:16:19 +0000 (23:16 +0000)
committerShuxin Yang <shuxin.llvm@gmail.com>
Thu, 13 Dec 2012 23:16:19 +0000 (23:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170158 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/README.txt

index 8165f5b8cc97047216f32b5f6d681e022b2b4310..a9aab86abdacb830e02f8c364723e8ed94f25541 100644 (file)
@@ -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++)