[DAGCombine] Allow scalable type dead store elimination.
authorDinar Temirbulatov <dinar.temirbulatov@arm.com>
Wed, 8 Feb 2023 00:57:26 +0000 (00:57 +0000)
committerDinar Temirbulatov <dinar.temirbulatov@arm.com>
Wed, 8 Feb 2023 00:57:26 +0000 (00:57 +0000)
commit8fdc3ff2205b714bf47285f4fb1da181a9a46ce2
treec67c3305d48f21898ccd96c8900c6e02ca00c128
parentaef05b5dc5c566bcaa15b66c989ccb8d2841ac71
[DAGCombine] Allow scalable type dead store elimination.

Add support to allow removing a dead store for scalable types. Avoid to remove
scalable type store in favor of fixed type store, since scalable type size is
unknown at the compile time.

Differential Revision: https://reviews.llvm.org/D142100
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/AArch64/sve-redundant-store.ll