mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-10 06:25:01 +00:00
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:
parent
55115233db
commit
b3640f8018
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user