BFI: Improve assertion message, since it's actually firing

This assertion is firing because -loop-unroll is failing to preserve
-loop-info (see PR20987).  Improve it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219130 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith 2014-10-06 17:42:00 +00:00
parent ca6c95df36
commit 7609712017

View File

@ -602,7 +602,8 @@ static void findIrreducibleHeaders(
break;
}
}
assert(Headers.size() >= 2 && "Should be irreducible");
assert(Headers.size() >= 2 &&
"Expected irreducible CFG; -loop-info is likely invalid");
if (Headers.size() == InSCC.size()) {
// Every block is a header.
std::sort(Headers.begin(), Headers.end());