[PATCH] D132700: [DSE] Add value type checks for masked store candidates in Dead Store Elimination

Michael Berg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 8 13:51:23 PDT 2022


mcberg2021 added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp:252
+    VectorType *DeadTy = cast<VectorType>(DeadII->getArgOperand(0)->getType());
+    if (KillingTy->getScalarSizeInBits() != DeadTy->getScalarSizeInBits())
+      return OW_Unknown;
----------------
fhahn wrote:
> This should be fine if `KillingTy->getScalarSizeInBits >= DeadTy->getScalarSizeInBits()`, right? I might have missed it, but t looks like there's no test case like the one @mcberg2021 mentioned above?
That too should work.  I will update for the subsumption case. However I would like to leave the mask decomposition support for a later change.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132700/new/

https://reviews.llvm.org/D132700



More information about the llvm-commits mailing list