Skip to content

Commit cfe3f5f

Browse files
committed
[VPlan] Remove unneeded ExitBB variable after f0c5caa.
Fix buildbot failures due to an unused variable, e.g. https://lab.llvm.org/buildbot/#/builders/186/builds/2329
1 parent e392056 commit cfe3f5f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8726,18 +8726,12 @@ static void addLiveOutsForFirstOrderRecurrences(
87268726
// Plan->getScalarLoopRegion()->getSinglePredecessor() in the future once the
87278727
// scalar region is modeled as well.
87288728
auto *MiddleVPBB = cast<VPBasicBlock>(VectorRegion->getSingleSuccessor());
8729-
BasicBlock *ExitBB = nullptr;
87308729
VPBasicBlock *ScalarPHVPBB = nullptr;
87318730
if (MiddleVPBB->getNumSuccessors() == 2) {
87328731
// Order is strict: first is the exit block, second is the scalar preheader.
8733-
ExitBB =
8734-
cast<VPIRBasicBlock>(MiddleVPBB->getSuccessors()[0])->getIRBasicBlock();
87358732
ScalarPHVPBB = cast<VPBasicBlock>(MiddleVPBB->getSuccessors()[1]);
87368733
} else if (ExitUsersToFix.empty()) {
87378734
ScalarPHVPBB = cast<VPBasicBlock>(MiddleVPBB->getSingleSuccessor());
8738-
} else {
8739-
ExitBB = cast<VPIRBasicBlock>(MiddleVPBB->getSingleSuccessor())
8740-
->getIRBasicBlock();
87418735
}
87428736
if (!ScalarPHVPBB) {
87438737
assert(ExitUsersToFix.empty() &&

0 commit comments

Comments
 (0)