[llvm] [SLP]: Introduce and use getDataFlowCost (PR #112999)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 21 14:43:32 PDT 2024
================
@@ -10267,8 +10302,14 @@ InstructionCost BoUpSLP::getTreeCost(ArrayRef<Value *> VectorizedVals) {
continue;
// No extract cost for vector "scalar"
- if (isa<FixedVectorType>(EU.Scalar->getType()))
+ if (isa<FixedVectorType>(EU.Scalar->getType())) {
+ // Account for any additional costs required by CallingConvention for the
+ // type.
+ if (isa_and_nonnull<ReturnInst>(EU.User))
----------------
arsenm wrote:
Outgoing call arguments too. But this is just the type legality cost?
https://github.com/llvm/llvm-project/pull/112999
More information about the llvm-commits
mailing list