[all-commits] [llvm/llvm-project] bf9a1b: [VPlan] Don't require single-pred blocks on path t...

Florian Hahn via All-commits all-commits at lists.llvm.org
Mon Sep 21 16:15:33 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bf9a1bb8b032da4cfbad5db2671f1037f69a2107
      https://github.com/llvm/llvm-project/commit/bf9a1bb8b032da4cfbad5db2671f1037f69a2107
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2026-09-21 (Mon, 21 Sep 2026)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlan.cpp

  Log Message:
  -----------
  [VPlan] Don't require single-pred blocks on path to loop region (NFC). (#225208)

Generalize getVectorLoopRegion logic to not on single
predecessor/successor chain. This won't hold once the epilogue skeleton
is also modeled in VPlan.

Instead stop at any block with multiple predecessors. In plain CFG form,
that is the loop header, in region-based CFG the scalar preheader.

Currently NFC, but preparation to fully model epilogue vectorization in
VPlan natively.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list