diff options
author | Shuxin Yang <shuxin.llvm@gmail.com> | 2012-11-29 19:38:54 +0000 |
---|---|---|
committer | Shuxin Yang <shuxin.llvm@gmail.com> | 2012-11-29 19:38:54 +0000 |
commit | abcc370423170abd4d6cc62d5e431cf1d7db2f71 (patch) | |
tree | 8c86b529c8195e1472cb81e9765739bc81a9882d /llvm/lib/Object/MachOObjectFile.cpp | |
parent | a4a77edf2e27dc8a24ac3323c48a2c7201fccbda (diff) | |
download | bcm5719-llvm-abcc370423170abd4d6cc62d5e431cf1d7db2f71.tar.gz bcm5719-llvm-abcc370423170abd4d6cc62d5e431cf1d7db2f71.zip |
rdar://12100355 (part 1)
This revision attempts to recognize following population-count pattern:
while(a) { c++; ... ; a &= a - 1; ... },
where <c> and <a>could be used multiple times in the loop body.
TODO: On X8664 and ARM, __buildin_ctpop() are not expanded to a efficent
instruction sequence, which need to be improved in the following commits.
Reviewed by Nadav, really appreciate!
llvm-svn: 168931
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions