[llvm] [SLP][Modularisation][NFC] Extract commutativity and ordering helpers into SLPUtils 2/3 (PR #209080)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 13 13:52:32 PDT 2026


================
@@ -843,17 +703,13 @@ isFixedVectorShuffle(ArrayRef<Value *> VL, SmallVectorImpl<int> &Mask,
 /// require scheduling if this is not an instruction or it is an instruction
 /// that does not read/write memory and all operands are either not instructions
 /// or phi nodes or instructions from different blocks.
-static bool areAllOperandsNonInsts(Value *V);
 /// Checks if the provided value does not require scheduling. It does not
 /// require scheduling if this is not an instruction or it is an instruction
 /// that does not read/write memory and all users are phi nodes or instructions
 /// from the different blocks.
-static bool isUsedOutsideBlock(Value *V);
 /// Checks if the specified value does not require scheduling. It does not
 /// require scheduling if all operands and all users do not need to be scheduled
 /// in the current basic block.
----------------
alexey-bataev wrote:

These comments should be moved along with the functions

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


More information about the llvm-commits mailing list