[llvm] [SLP] Allow targets to add cost for nonstandard conditions (PR #95328)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 13 01:18:23 PDT 2024
================
@@ -891,6 +891,11 @@ class TargetTransformInfo {
bool Insert, bool Extract,
TTI::TargetCostKind CostKind) const;
+ /// Whether or not there is any target-specific condition that imposes an
+ /// overhead for scalarization
+ bool hasScalarizationOverhead(ArrayRef<Value *> VL,
+ std::pair<bool, bool> &ScalarizationKind) const;
----------------
arsenm wrote:
What can this express that getOperandsScalarizationOverhead and getScalarizationOverhead do not?
I'm already confused by every function in TTI having multiple versions of ~everything
https://github.com/llvm/llvm-project/pull/95328
More information about the llvm-commits
mailing list