[llvm] [SLP]: Introduce and use getDataFlowCost (PR #112999)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 21 14:43:31 PDT 2024
================
@@ -306,6 +306,14 @@ bool GCNTTIImpl::hasBranchDivergence(const Function *F) const {
return !F || !ST->isSingleLaneExecution(*F);
}
+InstructionCost GCNTTIImpl::getDataFlowCost(Type *DataType,
+ bool IsCallingConv) {
+ if (isTypeLegal(DataType) || IsCallingConv)
----------------
arsenm wrote:
```suggestion
if (IsCallingConv || isTypeLegal(DataType))
```
https://github.com/llvm/llvm-project/pull/112999
More information about the llvm-commits
mailing list