llvm-project
acb86fb9 - [TTI] Consistently pass the pointer type to getAddressComputationCost. NFCI (#152657)

Commit
53 days ago
[TTI] Consistently pass the pointer type to getAddressComputationCost. NFCI (#152657) In some places we were passing the type of value being accessed, in other cases we were passing the type of the pointer for the access. The most "involved" user is LoopVectorizationCostModel::getMemInstScalarizationCost, which is the only call site that passes in the SCEV, and it passes along the pointer type. This changes call sites to consistently pass the pointer type, and renames the arguments to clarify this. No target actually checks the contents of the type passed, only to see if it's a vector or not, so this shouldn't have an effect.
Author
Parents
Loading