We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d386b3b commit 7c4ef67Copy full SHA for 7c4ef67
llvm/lib/Transforms/Vectorize/VPlan.h
@@ -4183,7 +4183,8 @@ class VPlan {
4183
/// block with multiple predecessors (one for the exit via the latch and one
4184
/// via the other early exit).
4185
bool hasEarlyExit() const {
4186
- return ExitBlocks.size() > 1 || ExitBlocks[0]->getNumPredecessors() > 1;
+ return ExitBlocks.size() > 1 ||
4187
+ (ExitBlocks.size() == 1 && ExitBlocks[0]->getNumPredecessors() > 1);
4188
}
4189
4190
/// Returns true if the scalar tail may execute after the vector loop. Note
0 commit comments