diff options
author | Andrew Trick <atrick@apple.com> | 2013-01-14 21:00:37 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2013-01-14 21:00:37 +0000 |
commit | d4e1b5e29151a3ab01ffa099f962fa554229e410 (patch) | |
tree | 46852d08cd84093e44286226c10346a58664ad3c /llvm/lib/Analysis/ScalarEvolutionExpander.cpp | |
parent | 980e7e7402c1f93c792d0d0efc6279dae603a34c (diff) | |
download | llvm-d4e1b5e29151a3ab01ffa099f962fa554229e410.zip llvm-d4e1b5e29151a3ab01ffa099f962fa554229e410.tar.gz llvm-d4e1b5e29151a3ab01ffa099f962fa554229e410.tar.bz2 |
SCEVExpander fix. RAUW needs to update the InsertedExpressions cache.
Note that this bug is only exposed because LTO fails to use TTI.
Fixes self-LTO of clang. rdar://13007381.
llvm-svn: 172462
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolutionExpander.cpp')
-rw-r--r-- | llvm/lib/Analysis/ScalarEvolutionExpander.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp index b87ad75..fcd7ce2 100644 --- a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp +++ b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp @@ -1523,9 +1523,8 @@ Value *SCEVExpander::expand(const SCEV *S) { } // Check to see if we already expanded this here. - std::map<std::pair<const SCEV *, Instruction *>, - AssertingVH<Value> >::iterator I = - InsertedExpressions.find(std::make_pair(S, InsertPt)); + std::map<std::pair<const SCEV *, Instruction *>, TrackingVH<Value> >::iterator + I = InsertedExpressions.find(std::make_pair(S, InsertPt)); if (I != InsertedExpressions.end()) return I->second; |