[PATCH] D155688: [PATCH] [llvm] [InstCombine] Canonicalise ADD+GEP

Fei Peng via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 6 18:34:16 PDT 2023


fiigii added a comment.

How does this patch work with `visitGEPOfGEP` that does a reverse transformation?

  // Replace: gep (gep %P, long B), long A, ...
  // With:    T = long A+B; gep %P, T, ...


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D155688/new/

https://reviews.llvm.org/D155688



More information about the cfe-commits mailing list