[llvm] [SeparateConstOffsetFromGEP] propagate const offset through GEP chains (PR #143470)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 10 03:47:46 PDT 2025


https://github.com/nikic commented:

Looks like there are some test failures.

This looks plausible, but I also feel like this is something we should be doing in InstCombine? (That is, trying to combine multiple constant offset GEPs into one, even if there are intermediate GEPs, as long as use-constraints allow.)

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


More information about the llvm-commits mailing list