[llvm-commits] [llvm] r96890 - /llvm/trunk/lib/Transforms/Scalar/GVN.cpp
Bob Wilson
bob.wilson at apple.com
Mon Feb 22 21:55:00 PST 2010
Author: bwilson
Date: Mon Feb 22 23:55:00 2010
New Revision: 96890
URL: http://llvm.org/viewvc/llvm-project?rev=96890&view=rev
Log:
Update memdep when load PRE inserts a new load, and add some debug output.
I don't have a small testcase for this.
Modified:
llvm/trunk/lib/Transforms/Scalar/GVN.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/GVN.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/GVN.cpp?rev=96890&r1=96889&r2=96890&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/GVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/GVN.cpp Mon Feb 22 23:55:00 2010
@@ -1707,6 +1707,8 @@
// Add the newly created load.
ValuesPerBlock.push_back(AvailableValueInBlock::get(UnavailablePred,
NewLoad));
+ MD->invalidateCachedPointerInfo(LoadPtr);
+ DEBUG(dbgs() << "GVN INSERTED " << *NewLoad << '\n');
}
// Perform PHI construction.
More information about the llvm-commits
mailing list