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(
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 () &&
You can’t perform that action at this time.
0 commit comments