[VPlan] Remove dead VPlan-native special case from BranchOnCount (NFC).

After 05776122b6 this special case doesn't exist any longer.
This commit is contained in:
Florian Hahn 2022-06-02 12:07:54 +01:00
parent 35f0890c4e
commit 4f1c86e3d5
No known key found for this signature in database
GPG Key ID: EEF712BB5E80EBBA
1 changed files with 0 additions and 5 deletions

View File

@ -793,11 +793,6 @@ void VPInstruction::generateInstruction(VPTransformState &State,
auto *Plan = getParent()->getPlan(); auto *Plan = getParent()->getPlan();
VPRegionBlock *TopRegion = Plan->getVectorLoopRegion(); VPRegionBlock *TopRegion = Plan->getVectorLoopRegion();
VPBasicBlock *Header = TopRegion->getEntry()->getEntryBasicBlock(); VPBasicBlock *Header = TopRegion->getEntry()->getEntryBasicBlock();
if (Header->empty()) {
assert(EnableVPlanNativePath &&
"empty entry block only expected in VPlanNativePath");
Header = cast<VPBasicBlock>(Header->getSingleSuccessor());
}
// TODO: Once the exit block is modeled in VPlan, use it instead of going // TODO: Once the exit block is modeled in VPlan, use it instead of going
// through State.CFG.ExitBB. // through State.CFG.ExitBB.
BasicBlock *Exit = State.CFG.ExitBB; BasicBlock *Exit = State.CFG.ExitBB;