Commit 39819ccd authored by Guillaume Chatelet's avatar Guillaume Chatelet
Browse files

Use concrete natural type alignment for masked load/store operations instead of 0.

parent 10045cbe
...@@ -1388,11 +1388,12 @@ public: ...@@ -1388,11 +1388,12 @@ public:
case Intrinsic::sideeffect: case Intrinsic::sideeffect:
return 0; return 0;
case Intrinsic::masked_store: case Intrinsic::masked_store:
return ConcreteTTI->getMaskedMemoryOpCost(Instruction::Store, Tys[0], 0, return ConcreteTTI->getMaskedMemoryOpCost(Instruction::Store, Tys[0],
DL.getABITypeAlignment(Tys[0]),
0, CostKind); 0, CostKind);
case Intrinsic::masked_load: case Intrinsic::masked_load:
return ConcreteTTI->getMaskedMemoryOpCost(Instruction::Load, RetTy, 0, 0, return ConcreteTTI->getMaskedMemoryOpCost(
CostKind); Instruction::Load, RetTy, DL.getABITypeAlignment(RetTy), 0, CostKind);
case Intrinsic::experimental_vector_reduce_add: case Intrinsic::experimental_vector_reduce_add:
return ConcreteTTI->getArithmeticReductionCost(Instruction::Add, VecOpTy, return ConcreteTTI->getArithmeticReductionCost(Instruction::Add, VecOpTy,
/*IsPairwiseForm=*/false, /*IsPairwiseForm=*/false,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment