[LIR] Start leveraging the fundamental guarantees of a loop in
authorChandler Carruth <chandlerc@gmail.com>
Thu, 13 Aug 2015 09:56:20 +0000 (09:56 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 13 Aug 2015 09:56:20 +0000 (09:56 +0000)
commit0e593a62f657547c6a7af6dc9710fc055a9c4da0
treeada99ce713981fa67b18c8ea7da982e09344eff9
parentfe1b43725e4a9cfeaf5f8aa6b6c3ece7d695c114
[LIR] Start leveraging the fundamental guarantees of a loop in
simplified form to remove redundant checks and simplify the code for
popcount recognition. We don't actually need to handle all of these
cases.

I've left a FIXME for one in particular until I finish inspecting to
make sure we don't actually *rely* on the predicate in any way.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244879 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopIdiomRecognize.cpp