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 | 84fca61ca5fba5c33a799d9133750b6832ddef7e (patch) | |
tree | 59095a7c46e6337324c8b3f534bf514e375a3355 /lib/Object/MachOObjectFile.cpp | |
parent | 73601160486b14711e1c6fdd86481eda9c319e45 (diff) |
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!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168931 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions