projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6eb3012
)
Update memdep when load PRE inserts a new load, and add some debug output.
author
Bob Wilson
<bob.wilson@apple.com>
Tue, 23 Feb 2010 05:55:00 +0000
(
05:55
+0000)
committer
Bob Wilson
<bob.wilson@apple.com>
Tue, 23 Feb 2010 05:55:00 +0000
(
05:55
+0000)
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
lib/Transforms/Scalar/GVN.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/GVN.cpp
b/lib/Transforms/Scalar/GVN.cpp
index f015def98f0233fd309a60aab85b6a8a14d47003..164730c3ca06d0f61bef011cc8ea6ade7e28d92c 100644
(file)
--- a/
lib/Transforms/Scalar/GVN.cpp
+++ b/
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.