[llvm] [VPlan] Introduce child regions as VPlan transform. (PR #129402)

via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 7 02:20:46 PDT 2025


================
@@ -648,6 +648,22 @@ bool VPBasicBlock::isExiting() const {
   return getParent() && getParent()->getExitingBasicBlock() == this;
 }
 
+std::optional<std::pair<VPBasicBlock *, VPBasicBlock *>>
+VPBasicBlock::isHeader(const VPDominatorTree &VPDT) const {
----------------
ayalz wrote:

Better retain as a static isHeader(VPBB, VPDT) rather than a method of VPBB which depends on an external analysis (or a VPDT::isHeader(VPBB) method)?

https://github.com/llvm/llvm-project/pull/129402


More information about the llvm-commits mailing list