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
This commit is contained in:
Bob Wilson 2010-02-23 05:55:00 +00:00
parent 55115233db
commit b3640f8018

View File

@ -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.