mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-27 07:45:35 +00:00
Use concrete natural type alignment for masked load/store operations instead of 0.
This commit is contained in:
parent
5ab8005ee3
commit
ea70cf12c0
@ -1388,11 +1388,12 @@ public:
|
||||
case Intrinsic::sideeffect:
|
||||
return 0;
|
||||
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);
|
||||
case Intrinsic::masked_load:
|
||||
return ConcreteTTI->getMaskedMemoryOpCost(Instruction::Load, RetTy, 0, 0,
|
||||
CostKind);
|
||||
return ConcreteTTI->getMaskedMemoryOpCost(
|
||||
Instruction::Load, RetTy, DL.getABITypeAlignment(RetTy), 0, CostKind);
|
||||
case Intrinsic::experimental_vector_reduce_add:
|
||||
return ConcreteTTI->getArithmeticReductionCost(Instruction::Add, VecOpTy,
|
||||
/*IsPairwiseForm=*/false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user