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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 2 04:08:16 PDT 2022


Author: Florian Hahn
Date: 2022-06-02T12:07:54+01:00
New Revision: 4f1c86e3d5ef2fe6787be42c2c9143363d46673b

URL: https://github.com/llvm/llvm-project/commit/4f1c86e3d5ef2fe6787be42c2c9143363d46673b
DIFF: https://github.com/llvm/llvm-project/commit/4f1c86e3d5ef2fe6787be42c2c9143363d46673b.diff

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

After 05776122b682684ad this special case doesn't exist any longer.

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/VPlan.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/VPlan.cpp b/llvm/lib/Transforms/Vectorize/VPlan.cpp
index f5cd8e5089206..dfd42b8311977 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlan.cpp
@@ -793,11 +793,6 @@ void VPInstruction::generateInstruction(VPTransformState &State,
     auto *Plan = getParent()->getPlan();
     VPRegionBlock *TopRegion = Plan->getVectorLoopRegion();
     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
     // through State.CFG.ExitBB.
     BasicBlock *Exit = State.CFG.ExitBB;


        


More information about the llvm-commits mailing list