[llvm] [VPlan] Verify dominance for incoming values of phi-like recipes. (PR #124838)
via llvm-commits
llvm-commits at lists.llvm.org
Wed May 14 07:33:04 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.
----------------
ayalz wrote:
Better have VPWidenIntOrFpInductionRecipe override a virtual getNumIncoming()?
https://github.com/llvm/llvm-project/pull/124838
More information about the llvm-commits
mailing list