[PATCH] D132700: [DSE] Add value type checks for masked store candidates in Dead Store Elimination
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 8 13:20:38 PDT 2022
fhahn 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;
----------------
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?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132700/new/
https://reviews.llvm.org/D132700
More information about the llvm-commits
mailing list