[llvm] Add a pass "SinkGEPConstOffset" (PR #140657)
Jeffrey Byrnes via llvm-commits
llvm-commits at lists.llvm.org
Mon May 19 19:11:29 PDT 2025
jrbyrnes wrote:
Why is this needed?
Shouldn't this already be covered by SeparateConstOffsetFromGEP (specifically reorderGEP). Then CodeGenPrepare does the sinking of constant offset GEPs.
See
https://godbolt.org/z/836v864TM
Do we also need the CodeGenPrepare functionality in opt?
https://github.com/llvm/llvm-project/pull/140657
More information about the llvm-commits
mailing list