1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

[NFC] Assert that all blocks staying in loop are live

llvm-svn: 347458
This commit is contained in:
Max Kazantsev 2018-11-22 12:43:27 +00:00
parent 351f1250a0
commit 2646e999a1

View File

@ -226,6 +226,8 @@ private:
// Sanity check: header must be in loop.
assert(BlocksInLoopAfterFolding.count(L.getHeader()) &&
"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