diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-04-09 06:55:46 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-04-09 06:55:46 +0000 |
commit | 17822fcde92f1cf1125fa2f937ca58c4fa43b295 (patch) | |
tree | 81ba96b19bbda5232c32d166483f6d2765f7a862 /llvm/lib/Analysis/AliasSetTracker.cpp | |
parent | 4db39cefdbbbfae7712d75a1e4f54a658b62bfa0 (diff) | |
download | bcm5719-llvm-17822fcde92f1cf1125fa2f937ca58c4fa43b295.tar.gz bcm5719-llvm-17822fcde92f1cf1125fa2f937ca58c4fa43b295.zip |
PR9604; try to deal with RAUW updates correctly in the AST. I'm not convinced
it's completely safe to cache the AST across LICM runs even with this fix,
but this fix can't hurt.
llvm-svn: 129198
Diffstat (limited to 'llvm/lib/Analysis/AliasSetTracker.cpp')
-rw-r--r-- | llvm/lib/Analysis/AliasSetTracker.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/AliasSetTracker.cpp b/llvm/lib/Analysis/AliasSetTracker.cpp index 3a46976d66f..2ed69494121 100644 --- a/llvm/lib/Analysis/AliasSetTracker.cpp +++ b/llvm/lib/Analysis/AliasSetTracker.cpp @@ -602,6 +602,10 @@ void AliasSetTracker::ASTCallbackVH::deleted() { // this now dangles! } +void AliasSetTracker::ASTCallbackVH::allUsesReplacedWith(Value *V) { + AST->copyValue(getValPtr(), V); +} + AliasSetTracker::ASTCallbackVH::ASTCallbackVH(Value *V, AliasSetTracker *ast) : CallbackVH(V), AST(ast) {} |