[llvm] [TTI] Use MemIntrinsicCostAttributes for getMaskedMemoryOpCost (PR #168029)
Shih-Po Hung via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 16 18:53:56 PST 2025
================
@@ -3686,7 +3688,7 @@ InstructionCost VPWidenLoadEVLRecipe::computeCost(ElementCount VF,
unsigned AS = cast<PointerType>(Ctx.Types.inferScalarType(getAddr()))
->getAddressSpace();
InstructionCost Cost = Ctx.TTI.getMaskedMemoryOpCost(
- Instruction::Load, Ty, Alignment, AS, Ctx.CostKind);
+ {Intrinsic::vp_load, Ty, Alignment, AS}, Ctx.CostKind);
----------------
arcbbb wrote:
Good catch. vp_load in getMaskedMemoryOpCost would surprise backends.
I've added a FIXME.
The rename to getMemIntrinsicCost will make this clear.
https://github.com/llvm/llvm-project/pull/168029
More information about the llvm-commits
mailing list