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:
15a3a49
)
Don't forget to remove phi nodes from the value numbering table after we collapse...
author
Owen Anderson
<resistor@mac.com>
Tue, 23 Dec 2008 00:49:51 +0000
(
00:49
+0000)
committer
Owen Anderson
<resistor@mac.com>
Tue, 23 Dec 2008 00:49:51 +0000
(
00:49
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61358
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 cd2dcf53d40cf751538fae870c467cbcb9ecf5cd..e5eef8f99e8b0258b22acd820ae117a0fb1d494b 100644
(file)
--- a/
lib/Transforms/Scalar/GVN.cpp
+++ b/
lib/Transforms/Scalar/GVN.cpp
@@
-1313,6
+1313,8
@@
bool GVN::processInstruction(Instruction *I,
p->replaceAllUsesWith(constVal);
if (isa<PointerType>(constVal->getType()))
MD->invalidateCachedPointerInfo(constVal);
+ VN.erase(p);
+
toErase.push_back(p);
} else {
localAvail[I->getParent()]->table.insert(std::make_pair(num, I));