summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit5349cf5f4b2a2d553658605171701c23a1193601 (patch)
tree4e81704ce370e5ef57336d761a7ae43d960989dd /llvm/lib/Analysis/ScalarEvolutionExpander.cpp
parent2d49c4f98de60b11ff56a6ae6399162f1aaa2db8 (diff)
downloadbcm5719-llvm-5349cf5f4b2a2d553658605171701c23a1193601.tar.gz
bcm5719-llvm-5349cf5f4b2a2d553658605171701c23a1193601.zip
Instead of clearing the rewriter, don't attempt to rewrite dead phi nodes.
Also fix 80 column violation. llvm-svn: 72371
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolutionExpander.cpp')
-rw-r--r--llvm/lib/Analysis/ScalarEvolutionExpander.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
index 03406271ded..191fcc02c4b 100644
--- a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud