forked from OSchip/llvm-project
[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:
parent
35f0890c4e
commit
4f1c86e3d5
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue