[llvm-commits] [llvm] r170158 - /llvm/trunk/lib/Target/README.txt
Shuxin Yang
shuxin.llvm at gmail.com
Thu Dec 13 15:16:19 PST 2012
Author: shuxin_yang
Date: Thu Dec 13 17:16:19 2012
New Revision: 170158
URL: http://llvm.org/viewvc/llvm-project?rev=170158&view=rev
Log:
Remove two popcount patterns which we are already able to recognize.
Modified:
llvm/trunk/lib/Target/README.txt
Modified: llvm/trunk/lib/Target/README.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/README.txt?rev=170158&r1=170157&r2=170158&view=diff
==============================================================================
--- llvm/trunk/lib/Target/README.txt (original)
+++ llvm/trunk/lib/Target/README.txt Thu Dec 13 17:16:19 2012
@@ -262,22 +262,7 @@
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++)
More information about the llvm-commits
mailing list