[clang] [llvm] [SROA] Canonicalize homogeneous structs to fixed vectors (opt-in, after memcpyopt) (PR #165159)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Thu May 14 06:51:59 PDT 2026


https://github.com/arsenm commented:

I didn't follow the whole story here. Introducing the flag for the pass pipeline seems OK, though I feel like this is avoiding solving problems in other places. I would expect SROA to avoid introducing store of undefined values, but I would also expect the rest of the pass pipeline to deal with partially undefined stores.

(side point, I went to look at memcpyopt to see if the problem was obvious and noticed https://github.com/llvm/llvm-project/issues/197683)

https://github.com/llvm/llvm-project/pull/165159


More information about the cfe-commits mailing list