When forgetting SCEVs for loop PHIs, don't forget SCEVUnknown values.
authorDan Gohman <gohman@apple.com>
Tue, 12 May 2009 01:27:58 +0000 (01:27 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 12 May 2009 01:27:58 +0000 (01:27 +0000)
commitefb9fbfdab6cab88146792a5db79315313270c7f
treec876f192e8aa148006478913ebf98fcf056976d4
parent42a5875e107a5dea72745574b0215d9bcdf6deb4
When forgetting SCEVs for loop PHIs, don't forget SCEVUnknown values.
These values aren't analyzable, so they don't care if more information
about the loop trip count can be had. Also, SCEVUnknown is used for
a PHI while the PHI itself is being analyzed, so it needs to be left
in the Scalars map. This fixes a variety of subtle issues.

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