Revert "Use concrete natural type alignment for masked load/store operations instead...
authorGuillaume Chatelet <gchatelet@google.com>
Wed, 24 Jun 2020 21:52:52 +0000 (21:52 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Wed, 24 Jun 2020 21:53:34 +0000 (21:53 +0000)
This reverts commit 39819ccd36b6dd61c9decd29df64fd4e8a7ee9ad.

llvm/include/llvm/CodeGen/BasicTTIImpl.h

index 5194332..4962c0d 100644 (file)
@@ -1388,12 +1388,11 @@ public:
     case Intrinsic::sideeffect:
       return 0;
     case Intrinsic::masked_store:
-      return ConcreteTTI->getMaskedMemoryOpCost(Instruction::Store, Tys[0],
-                                                DL.getABITypeAlignment(Tys[0]),
+      return ConcreteTTI->getMaskedMemoryOpCost(Instruction::Store, Tys[0], 0,
                                                 0, CostKind);
     case Intrinsic::masked_load:
-      return ConcreteTTI->getMaskedMemoryOpCost(
-          Instruction::Load, RetTy, DL.getABITypeAlignment(RetTy), 0, CostKind);
+      return ConcreteTTI->getMaskedMemoryOpCost(Instruction::Load, RetTy, 0, 0,
+                                                CostKind);
     case Intrinsic::experimental_vector_reduce_add:
       return ConcreteTTI->getArithmeticReductionCost(Instruction::Add, VecOpTy,
                                                      /*IsPairwiseForm=*/false,