aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/ScalarEvolutionExpander.cpp
diff options
context:
space:
mode:
authorTorok Edwin <edwintorok@gmail.com>2009-05-24 19:36:09 +0000
committerTorok Edwin <edwintorok@gmail.com>2009-05-24 19:36:09 +0000
commit3790fb0c036acaa4db50aff83dd8b3bf51f8af6a (patch)
treec22e6b09dd478719a963fdd87e626866a406adcc /lib/Analysis/ScalarEvolutionExpander.cpp
parent95bdbfa0668cc2b475429fbc6046f364bc01edf7 (diff)
Instead of clearing the rewriter, don't attempt to rewrite dead phi nodes.
Also fix 80 column violation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72371 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ScalarEvolutionExpander.cpp')
-rw-r--r--lib/Analysis/ScalarEvolutionExpander.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/ScalarEvolutionExpander.cpp b/lib/Analysis/ScalarEvolutionExpander.cpp
index 03406271de..191fcc02c4 100644
--- a/lib/Analysis/ScalarEvolutionExpander.cpp
+++ b/lib/Analysis/ScalarEvolutionExpander.cpp
@@ -615,7 +615,8 @@ Value *SCEVExpander::expandCodeFor(SCEVHandle SH, const Type *Ty) {
Value *SCEVExpander::expand(const SCEV *S) {
// Check to see if we already expanded this.
- std::map<SCEVHandle, AssertingVH<Value> >::iterator I = InsertedExpressions.find(S);
+ std::map<SCEVHandle, AssertingVH<Value> >::iterator I =
+ InsertedExpressions.find(S);
if (I != InsertedExpressions.end())
return I->second;