[PATCH] D106450: [InstCombine] Fold (gep (oneuse(gep Ptr, Idx0)), Idx1) -> (gep Ptr, (add Idx0, Idx1)) (PR51069)
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 18 10:59:12 PDT 2021
lebedev.ri added a comment.
I suspect while we want to apply D107935 <https://reviews.llvm.org/D107935>, it's only half of the story - what if LICM didn't run yet?
We need some kind of an undo transform. (and no, `SeparateConstOffsetFromGEP` doesn't help, i tried)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106450/new/
https://reviews.llvm.org/D106450
More information about the llvm-commits
mailing list