mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
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:
parent
ca6c95df36
commit
7609712017
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user