[llvm] [SLP] NFC. Replace TreeEntry::setOperandsInOrder with VLOperands. (PR #113880)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 28 07:44:38 PDT 2024


================
@@ -1948,6 +1948,9 @@ class BoUpSLP {
 
     /// A vector of operand vectors.
     SmallVector<OperandDataVec, 4> OpsVec;
+    /// When VL[0] is IntrinsicInst, Arg_size is CallBase::arg_size. When VL[0]
+    /// is not IntrinsicInst, Arg_size is User::getNumOperands.
+    unsigned Arg_size;
----------------
alexey-bataev wrote:

Why the original code cannot be reused, why need an extra data member here? Why just getNumOperands() or 2 does not work?

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


More information about the llvm-commits mailing list