[llvm] [VPlan] Remove loop region in optimizeForVFAndUF. (PR #108378)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 3 12:40:27 PST 2025
================
@@ -2446,9 +2450,11 @@ InnerLoopVectorizer::getOrCreateVectorTripCount(BasicBlock *InsertBlock) {
/// Introduces a new VPIRBasicBlock for \p CheckIRBB to \p Plan between the
/// vector preheader and its predecessor, also connecting the new block to the
/// scalar preheader.
-static void introduceCheckBlockInVPlan(VPlan &Plan, BasicBlock *CheckIRBB) {
+static void introduceCheckBlockInVPlan(VPlan &Plan, VPBlockBase *VectorPH,
+ BasicBlock *CheckIRBB) {
VPBlockBase *ScalarPH = Plan.getScalarPreheader();
- VPBlockBase *VectorPH = Plan.getVectorPreheader();
+ // FIXME: Cannot get the vector preheader at the moment if the vector loop
+ // region has been removed.
----------------
fhahn wrote:
Fixme is gone, thanks
https://github.com/llvm/llvm-project/pull/108378
More information about the llvm-commits
mailing list