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 | 923261bbe917bb5c19a62fdc709a9f261aa70e1d (patch) | |
tree | 4412aba32682b312fe8a9e44dbbcedf8d9907ace /llvm/lib | |
parent | ee820ace0648f95842c3555c0cec3b7496dc0c57 (diff) | |
download | bcm5719-llvm-923261bbe917bb5c19a62fdc709a9f261aa70e1d.tar.gz bcm5719-llvm-923261bbe917bb5c19a62fdc709a9f261aa70e1d.zip |
Update memdep when load PRE inserts a new load, and add some debug output.
I don't have a small testcase for this.
llvm-svn: 96890
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Scalar/GVN.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/GVN.cpp b/llvm/lib/Transforms/Scalar/GVN.cpp index f015def98f0..164730c3ca0 100644 --- a/llvm/lib/Transforms/Scalar/GVN.cpp +++ b/llvm/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. |