[llvm] [NFC] Replace CallInst with FunctionType in VFABI, VFShape API (PR #74569)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 6 02:51:52 PST 2023
================
@@ -6461,9 +6462,10 @@ getVectorCallCosts(CallInst *CI, FixedVectorType *VecTy,
auto IntrinsicCost =
TTI->getIntrinsicInstrCost(CostAttrs, TTI::TCK_RecipThroughput);
- auto Shape = VFShape::get(*CI, ElementCount::getFixed(static_cast<unsigned>(
- VecTy->getNumElements())),
- false /*HasGlobalPred*/);
+ auto Shape = VFShape::get(
+ CI->getFunctionType(),
+ ElementCount::getFixed(static_cast<unsigned>(VecTy->getNumElements())),
----------------
paulwalker-arm wrote:
Not relevant to this patch so it's up to you but these original static_casts look redundant given `getNumElements` already returns an `unsigned`?
https://github.com/llvm/llvm-project/pull/74569
More information about the llvm-commits
mailing list