Instead of passing CostContext, directly pass the needed TTI and CostKind. This makes the function easier to re-use in other places, without the need of constructing VPCostContext. Split off from https://github.com/llvm/llvm-project/pull/194267 as suggested.
25 KiB
25 KiB