From: Shuxin Yang Date: Thu, 13 Dec 2012 23:16:19 +0000 (+0000) Subject: Remove two popcount patterns which we are already able to recognize. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=200e2370dc1b9216bbf1320ed7c14f9f035a6bd6;p=oota-llvm.git 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 --- 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++)