Re-apply r101000, with a fix: Don't eliminate an icmp which is part of
authorDan Gohman <gohman@apple.com>
Mon, 12 Apr 2010 02:21:50 +0000 (02:21 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 12 Apr 2010 02:21:50 +0000 (02:21 +0000)
commit931e345e76e75391d2a7c96530e305f802b5429d
tree4530af5803a73c7046c06d1b84e8eed92c18b783
parent17e8b7fbde5175c27c734f905959ebfae1e317b4
Re-apply r101000, with a fix: Don't eliminate an icmp which is part of
the loop exit test. This usually doesn't come up for a variety of
reasons, but it isn't impossible, so make IndVarSimplify handle it
conservatively.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101008 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/IndVarSimplify.cpp
test/Transforms/IndVarSimplify/eliminate-comparison.ll [new file with mode: 0644]