[DSE] Add value type info checks for masked store candidates in Dead Store Elimination.
authorMichael Berg <michael.berg@sifive.com>
Tue, 20 Sep 2022 22:54:16 +0000 (15:54 -0700)
committerMichael Berg <michael.berg@sifive.com>
Tue, 20 Sep 2022 22:54:25 +0000 (15:54 -0700)
commit897a79f97004d377542e4c074cdd696c96c73e2d
tree4cfdbc62a3fba9e01ff7e61d9a8367118cc95da3
parentc493d49cefeefa87532a2987a776b5433265e49f
[DSE] Add value type info checks for masked store candidates in Dead Store Elimination.

The type information of the store values can diverge when checking for valid
mask store candidates to eliminate via DSE. This patch checks for equivalence
wrt to size and element count.

Reviewed By: fhahn, rui.zhang

Differential Revision: https://reviews.llvm.org/D132700
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
llvm/test/Transforms/DeadStoreElimination/masked-dead-store.ll