[SDAG] Refine MMO size when converting masked load/store to normal load/store
authorDavid Green <david.green@arm.com>
Wed, 8 Dec 2021 10:13:25 +0000 (10:13 +0000)
committerDavid Green <david.green@arm.com>
Wed, 8 Dec 2021 10:13:25 +0000 (10:13 +0000)
commit5d7efd4758b3d764f08e07abe05b821242e75830
tree8b1ac9c831d4ba122a2fcff7542ddc3240e20c74
parente6d0b851f854849240bc1f02901b0dbb3be84388
[SDAG] Refine MMO size when converting masked load/store to normal load/store

After D113888 / 32b6c17b29079e7d the MMO size of a masked loads/store is
unknown. When we are converting back to a standard load/store because
the mask is known all ones, we can refine that to the correct size from
the size of the vector being loaded/stored.

Differential Revision: https://reviews.llvm.org/D114582
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/masked_loadstore_split.ll [new file with mode: 0644]