[PATCH] D109131: [GlobalISel] Add a store-merging optimization pass and enable for AArch64.

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 2 11:20:05 PDT 2021


paquette added inline comments.


================
Comment at: llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp:284
+/// forces a boundary between store merge candidates.
+static bool isInstHardMergeHazard(MachineInstr &MI) {
+  return MI.hasUnmodeledSideEffects() || MI.hasOrderedMemoryRef();
----------------
might as well be const?


================
Comment at: llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp:318
+          TLI->canMergeStoresTo(AS, StoreEVT, *MF) &&
+          (TLI->isTypeLegal(StoreEVT)/* || isTruncStoreLegal()*/))
+        break; // We can generate a MergeSize bits store.
----------------
is the commented out code here intentional?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D109131



More information about the llvm-commits mailing list