[llvm] [TTI][RISCV][SLP] Add IdentityConstantValue option to OperandValueKind for use by SLP and RISCV (PR #228630)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 4 23:29:59 PDT 2026


================
@@ -1324,6 +1324,7 @@ class TargetTransformInfo {
     OK_AnyValue,               // Operand can have any value.
     OK_UniformValue,           // Operand is uniform (splat of a value).
     OK_UniformConstantValue,   // Operand is uniform constant.
+    OK_IdentityConstantValue,  // Operand is the identity vector (0, 1, ...)
----------------
RKSimon wrote:

I think I've misunderstood the purpose of this - I read Identity as `binop(X,Identity) == X` but you're saying its something more like an Identity/Concat shuffle mask?

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


More information about the llvm-commits mailing list