Reapply 75252, with a fix to avoid the infinite recursion case. The
authorDan Gohman <gohman@apple.com>
Mon, 13 Jul 2009 21:35:55 +0000 (21:35 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 13 Jul 2009 21:35:55 +0000 (21:35 +0000)
commit85b05a2e60e0e696739167b52cc7cc3e7cf390c0
treee89f992268d824d345192a59d4a88dedb55340f3
parentd97ea308ed053a37e282d0180f9a716309c84d88
Reapply 75252, with a fix to avoid the infinite recursion case. The
check for avoiding re-analyzing a widening cast needed to happen
earlier, as getSCEV itself may result in a isLoopGuardedByCond query.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75511 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/ScalarEvolution.h
lib/Analysis/ScalarEvolution.cpp
test/Transforms/IndVarSimplify/iv-sext.ll