[llvm] [VPlan] Add exit phi operands during initial construction (NFC). (PR #136455)

via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 21 08:05:36 PDT 2025


================
@@ -1139,7 +1139,7 @@ InstructionCost VPIRInstruction::computeCost(ElementCount VF,
 void VPIRInstruction::extractLastLaneOfOperand(VPBuilder &Builder) {
   assert(isa<PHINode>(getInstruction()) &&
          "can only add exiting operands to phi nodes");
-  assert(getNumOperands() == 1 && "must have a single operand");
+  assert(getNumOperands() > 0 && "must have at least one operand");
----------------
ayalz wrote:

And yet we continue to extract the first operand, only? extractLastLaneOf[First]Operand()

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


More information about the llvm-commits mailing list