mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-22 12:08:33 +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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96890 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6eb3012b45
commit
188f428e4e
@ -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…
Reference in New Issue
Block a user