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
This commit is contained in:
Chris Lattner 2008-07-18 05:23:39 +00:00
parent f38f99ccc5
commit 0429684d2d

View File

@ -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 {