File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -8726,18 +8726,12 @@ static void addLiveOutsForFirstOrderRecurrences(
8726
8726
// Plan->getScalarLoopRegion()->getSinglePredecessor() in the future once the
8727
8727
// scalar region is modeled as well.
8728
8728
auto *MiddleVPBB = cast<VPBasicBlock>(VectorRegion->getSingleSuccessor ());
8729
- BasicBlock *ExitBB = nullptr ;
8730
8729
VPBasicBlock *ScalarPHVPBB = nullptr ;
8731
8730
if (MiddleVPBB->getNumSuccessors () == 2 ) {
8732
8731
// Order is strict: first is the exit block, second is the scalar preheader.
8733
- ExitBB =
8734
- cast<VPIRBasicBlock>(MiddleVPBB->getSuccessors ()[0 ])->getIRBasicBlock ();
8735
8732
ScalarPHVPBB = cast<VPBasicBlock>(MiddleVPBB->getSuccessors ()[1 ]);
8736
8733
} else if (ExitUsersToFix.empty ()) {
8737
8734
ScalarPHVPBB = cast<VPBasicBlock>(MiddleVPBB->getSingleSuccessor ());
8738
- } else {
8739
- ExitBB = cast<VPIRBasicBlock>(MiddleVPBB->getSingleSuccessor ())
8740
- ->getIRBasicBlock ();
8741
8735
}
8742
8736
if (!ScalarPHVPBB) {
8743
8737
assert (ExitUsersToFix.empty () &&
You can’t perform that action at this time.
0 commit comments