Follow up to 168711: It's safe to base this analysis on the found compare, just retur...
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 29 Nov 2012 19:07:57 +0000 (19:07 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 29 Nov 2012 19:07:57 +0000 (19:07 +0000)
commit7d4253af167479759fa5a71b7607b40033b96492
treeba939f9409dd2b628037a5153dadb39956def787
parentb36be80510b9b38a9341623db3a6a9a49f1764fe
Follow up to 168711: It's safe to base this analysis on the found compare, just return the value for the right predicate.

Thanks to Andy for catching this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168921 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp
test/Transforms/IndVarSimplify/eliminate-comparison.ll