[llvm] [VPlan] Implement interleaving as VPlan-to-VPlan transform. (PR #95842)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 3 15:24:29 PDT 2024


================
@@ -582,6 +581,14 @@ VPRegionBlock *VPBasicBlock::getEnclosingLoopRegion() {
   return P;
 }
 
+const VPRegionBlock *VPBasicBlock::getEnclosingLoopRegion() const {
+  return getEnclosingLoopRegionImpl(getParent());
----------------
ayalz wrote:

nit: should getEnclosingLoopRegionImpl() be called `getEnclosingLoopRegionForRegion()`?

nit: could `this` be passed instead of getParent(), delegating the latter to getEnclosingLoopRegionImpl(), which could then be more accurately called `getEnclosingLoopRegionForBasicBlock()`?

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


More information about the llvm-commits mailing list