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

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 21 18:51:10 PST 2023


craig.topper added a comment.

After this patch, I'm seeing a lot of `invariant.gep` created by LICM. For example, in `LBM_performStreamCollide` in 470.lbm there are 65 of them. On RISC-V, these all get created in registers outside the loop and get spilled. Is ARM seeing anything like this or do you have more addressing modes that allow CodeGenPrepare to bring these back into the loop?


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