diff options
| author | Torok Edwin <edwintorok@gmail.com> | 2009-05-24 19:36:09 +0000 |
|---|---|---|
| committer | Torok Edwin <edwintorok@gmail.com> | 2009-05-24 19:36:09 +0000 |
| commit | 5349cf5f4b2a2d553658605171701c23a1193601 (patch) | |
| tree | 4e81704ce370e5ef57336d761a7ae43d960989dd /llvm/lib/Analysis/ScalarEvolutionExpander.cpp | |
| parent | 2d49c4f98de60b11ff56a6ae6399162f1aaa2db8 (diff) | |
| download | bcm5719-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.cpp | 3 |
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; |

