diff options
author | Bob Wilson <bob.wilson@apple.com> | 2010-02-23 05:55:00 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2010-02-23 05:55:00 +0000 |
commit | 188f428e4e76d465ac89c275318521bdfbe028eb (patch) | |
tree | f42e9d996782d1133a746b16fd55769651764ed7 | |
parent | 6eb3012b454b8dd3588236333a6bc57e9e6128b1 (diff) |
Update memdep when load PRE inserts a new load, and add some debug output.
I don't have a small testcase for this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96890 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/GVN.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index f015def98f..164730c3ca 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/lib/Transforms/Scalar/GVN.cpp @@ -1707,6 +1707,8 @@ bool GVN::processNonLocalLoad(LoadInst *LI, // Add the newly created load. ValuesPerBlock.push_back(AvailableValueInBlock::get(UnavailablePred, NewLoad)); + MD->invalidateCachedPointerInfo(LoadPtr); + DEBUG(dbgs() << "GVN INSERTED " << *NewLoad << '\n'); } // Perform PHI construction. |