[llvm] [SLP] Fix PoisonValue in the argument VL of setOperand. (PR #118949)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 10 07:04:27 PST 2024
================
@@ -3338,14 +3335,13 @@ class BoUpSLP {
copy(OpVL, Operands[OpIdx].begin());
}
- /// Set this bundle's operand from \p VL.
- void setOperand(ArrayRef<Value *> VL, const BoUpSLP &R,
+ /// Set this bundle's operand from Scalars.
+ void setOperand(Instruction *VL0, const BoUpSLP &R,
bool RequireReorder = false) {
- VLOperands Ops(VL, R);
+ VLOperands Ops(Scalars, VL0, R);
----------------
alexey-bataev wrote:
Instead of passing `VL0` here, I think you can safely use MainOp member instruction
https://github.com/llvm/llvm-project/pull/118949
More information about the llvm-commits
mailing list