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 dde00f5 commit 06d4876Copy full SHA for 06d4876
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -2508,7 +2508,7 @@ void VPlanTransforms::handleUncountableEarlyExit(
2508
// Early exit operand should always be last, i.e., 0 if VPEarlyExitBlock has
2509
// a single predecessor and 1 if it has two.
2510
unsigned EarlyExitIdx = ExitIRI->getNumOperands() - 1;
2511
- if (OrigLoop->getUniqueExitBlock()) {
+ if (!VPEarlyExitBlock->getSinglePredecessor()) {
2512
// If VPEarlyExitBlock has two predecessors, they are already ordered such
2513
// that early exit is second (and latch exit is first), by construction.
2514
// But its underlying IRBB (EarlyExitIRBB) may have its predecessors
0 commit comments