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:
246dbbb
)
Verify removed in a few more places.
author
Bill Wendling
<isanbard@gmail.com>
Mon, 22 Dec 2008 21:57:30 +0000
(21:57 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Mon, 22 Dec 2008 21:57:30 +0000
(21:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61349
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 8a3b384b0632f1257b7427cca93f391fc5b62b82..1d7a107db23c4a16d4b9b091a0f2e1b2ecb7793a 100644
(file)
--- a/
lib/Transforms/Scalar/GVN.cpp
+++ b/
lib/Transforms/Scalar/GVN.cpp
@@
-1461,6
+1461,7
@@
bool GVN::processBlock(BasicBlock* BB) {
DEBUG(cerr << "GVN removed: " << **I);
MD->removeInstruction(*I);
(*I)->eraseFromParent();
+ DEBUG(verifyRemoved(*I));
}
toErase.clear();
@@
-1611,6
+1612,7
@@
bool GVN::performPRE(Function& F) {
DEBUG(cerr << "GVN PRE removed: " << *CurInst);
MD->removeInstruction(CurInst);
CurInst->eraseFromParent();
+ DEBUG(verifyRemoved(CurInst));
Changed = true;
}
}