summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-07-18 05:23:39 +0000
committerChris Lattner <sabre@nondot.org>2008-07-18 05:23:39 +0000
commiteee1f57ceabb07224dce905c9370e1f1135581c3 (patch)
tree3e1d7dc2492a32d2a875bed542b046e829ce6a11 /llvm/lib
parent072429320a94ca2dcda9567fbcd021a0168836d4 (diff)
downloadbcm5719-llvm-eee1f57ceabb07224dce905c9370e1f1135581c3.tar.gz
bcm5719-llvm-eee1f57ceabb07224dce905c9370e1f1135581c3.zip
verify limits-fndefn.c from the GCC testsuite before the
heat death of the universe, fixing an O(N^2) problem in the size of a basic block. llvm-svn: 53749
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/Verifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp
index 4ff2447621e..79c24f334cf 100644
--- a/llvm/lib/VMCore/Verifier.cpp
+++ b/llvm/lib/VMCore/Verifier.cpp
@@ -1239,7 +1239,7 @@ void Verifier::visitInstruction(Instruction &I) {
}
// Definition must dominate use unless use is unreachable!
- Assert2(DT->dominates(Op, &I) ||
+ Assert2(InstsInThisBlock.count(Op) || DT->dominates(Op, &I) ||
!DT->dominates(&BB->getParent()->getEntryBlock(), BB),
"Instruction does not dominate all uses!", Op, &I);
} else {
OpenPOWER on IntegriCloud