mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-18 10:24:45 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53749 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1239,7 +1239,7 @@ void Verifier::visitInstruction(Instruction &I) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Definition must dominate use unless use is unreachable!
|
// 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),
|
!DT->dominates(&BB->getParent()->getEntryBlock(), BB),
|
||||||
"Instruction does not dominate all uses!", Op, &I);
|
"Instruction does not dominate all uses!", Op, &I);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user