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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed May 14 11:33:40 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
+  /// incoming value, its start value.
----------------
fhahn wrote:

Done thanks

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


More information about the llvm-commits mailing list