[clang] [llvm] [InstCombine] Preserve multi-dimensional array structure in GEP optimization (PR #176414)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 27 02:25:31 PST 2026


arsenm wrote:

> The flattened GEPs do not preserve semantic information about multi dimensional arrays.

The GEP type doesn't really contain semantic information about the array. It's just a size factor in the address computation

> the backend can recognize strided access patterns easier,

Can you be more specific about what code this is?


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


More information about the cfe-commits mailing list