[PATCH] D144711: [DAGCombiner] don't reuse the pointer info for merged store

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 24 02:03:01 PST 2023


foad added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:19133
+        NewChain, DL, StoredVal, FirstInChain->getBasePtr(),
+        MachinePointerInfo(FirstInChain->getPointerInfo().getAddrSpace()),
+        FirstInChain->getAlign(), *Flags, AAInfo);
----------------
I agree that this looks conservatively safe, but I think it will pessimize the case where the MachinePointerInfos had the same underlying pointer.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D144711



More information about the llvm-commits mailing list