[llvm-branch-commits] [llvm] [TTI][SLP] Tell the target when the users of a cost context stay scalar (PR #228902)

Alexey Bataev via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Oct 4 17:30:11 PDT 2026


================
@@ -17575,9 +17575,15 @@ BoUpSLP::getEntryCost(const TreeEntry *E, ArrayRef<Value *> VectorizedVals,
       unsigned OpIdx = isa<UnaryOperator>(VL0) ? 0 : 1;
       TTI::OperandValueInfo Op1Info = getOperandInfo(E->getOperand(0));
       TTI::OperandValueInfo Op2Info = getOperandInfo(E->getOperand(OpIdx));
+      const TreeEntry *UserTE = E->UserTreeIndex.UserTE;
+      TTI::ContextUsersHint UsersHint =
----------------
alexey-bataev wrote:

Again, would be good to avoid doing this in SLP, it should be a simple boolean flag instead, not a context, or anything else. Context should be detected by TTI.

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


More information about the llvm-branch-commits mailing list