https://github.com/juliannagele approved this pull request. Maybe a test with 3 stores where the masks aren't perfectly complementary might be good? LGTM otherwise, thanks! https://github.com/llvm/llvm-project/pull/168771