[PATCH] D70223: [DAGCombine] Split vector load-update-store into single element stores

qshanz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 14 03:08:06 PST 2019


steven.zhang added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:6800
+  if (TLI.isCheapToSplitStore(N, UpdatedElementsIdx.size(), DAG) &&
+      TLI.getOperationAction(ISD::STORE, EleVT) == TargetLowering::Legal &&
+      TLI.allowsMemoryAccess(*DAG.getContext(), DAG.getDataLayout(), EleVT)) {
----------------
And it is also benefit to do this folding before the legalization, so that, the illegal store could be combined to legal store later.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D70223





More information about the llvm-commits mailing list