[IndVarSimplify] Widen loop compare instructions.
authorChad Rosier <mcrosier@codeaurora.org>
Wed, 17 Sep 2014 14:10:33 +0000 (14:10 +0000)
committerChad Rosier <mcrosier@codeaurora.org>
Wed, 17 Sep 2014 14:10:33 +0000 (14:10 +0000)
commitc5f6b53403e792948f0ab51bdaee278f8951b5b4
treea07a57e084e8adb4cc0eb8dc345d944e11bda2d7
parenta34cab9be72f0e4b8e03838aad617d34c7c48063
[IndVarSimplify] Widen loop compare instructions.

This improves other optimizations such as LSR.  A sext may be added to the
compare's other operand, but this can often be hoisted outside of the loop.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217953 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/IndVarSimplify.cpp
test/Transforms/IndVarSimplify/no-iv-rewrite.ll
test/Transforms/IndVarSimplify/verify-scev.ll
test/Transforms/IndVarSimplify/widen-loop-comp.ll [new file with mode: 0644]