[llvm] [LoopVectorize] Enable vectorisation of early exit loops with live-outs (PR #120567)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 21 05:56:25 PST 2025


================
@@ -306,6 +306,24 @@ template <> struct GraphTraits<VPlan *> {
   }
 };
 
+inline bool VPlan::isExitBlock(VPBlockBase *VPBB) {
+  if (!isa<VPIRBasicBlock>(VPBB) || VPBB->getNumSuccessors() ||
----------------
fhahn wrote:

It should be fine to define `isExitBlock` in `VPlan.cpp`, which includes `VPlanCFG.h`?

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


More information about the llvm-commits mailing list