[llvm] [VPlan] Verify dominance for incoming values of phi-like recipes. (PR #124838)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue May 13 03:19:59 PDT 2025


================
@@ -1135,7 +1135,14 @@ class VPPhiAccessors {
   const VPBasicBlock *getIncomingBlock(unsigned Idx) const;
 
   /// Returns the number of incoming values, also number of incoming blocks.
-  unsigned getNumIncoming() const { return getAsRecipe()->getNumOperands(); }
+  /// Note that at the moment, VPWidenIntOrFpInductionRecipes only have a single
----------------
fhahn wrote:

#138472 simply adds additional iterators, but that is optional and not needed for the verification patch itself; they both need handling for additional recipes  in `getNumIncoming` though. Currently https://github.com/llvm/llvm-project/pull/138472 is more of a follow-up after this patch

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


More information about the llvm-commits mailing list