[NFC] Assert that all blocks staying in loop are live
llvm-svn: 347458
This commit is contained in:
parent
56a2443024
commit
b565e6093b
|
@ -226,6 +226,8 @@ private:
|
||||||
// Sanity check: header must be in loop.
|
// Sanity check: header must be in loop.
|
||||||
assert(BlocksInLoopAfterFolding.count(L.getHeader()) &&
|
assert(BlocksInLoopAfterFolding.count(L.getHeader()) &&
|
||||||
"Header not in loop?");
|
"Header not in loop?");
|
||||||
|
assert(BlocksInLoopAfterFolding.size() <= LiveLoopBlocks.size() &&
|
||||||
|
"All blocks that stay in loop should be live!");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Constant-fold terminators of blocks acculumated in FoldCandidates into the
|
/// Constant-fold terminators of blocks acculumated in FoldCandidates into the
|
||||||
|
|
Loading…
Reference in New Issue