[PATCH] D146813: [LICM] Reassociate GEPs to allow hoisting

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 27 20:00:08 PDT 2023


mkazantsev added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/LICM.cpp:2540
+      Builder.CreateGEP(Src->getSourceElementType(), NewSrc,
+                        SmallVector<Value *>(Src->indices()), "", IsInBounds);
+  GEP->replaceAllUsesWith(NewGEP);
----------------
Give them some name maybe?


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

https://reviews.llvm.org/D146813



More information about the llvm-commits mailing list