[PATCH] D125511: [InstCombine] Merging constant-indexed GEP of GEP in both directions
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 13 06:04:42 PDT 2022
nikic added a comment.
I'm not a big fan of the "try to combine in both directions approach". It will still miss cases where neither direction works, but the GEPs can still be folded. Something like this should work for all constant GEPs: https://gist.github.com/nikic/8a1a82382468c88f19094d4b0a2f547c
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125511/new/
https://reviews.llvm.org/D125511
More information about the llvm-commits
mailing list