[PATCH] D46955: [DAG] Prune cycle check in store merge.

Nirav Dave via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 16 08:37:12 PDT 2018


niravd created this revision.
niravd added a reviewer: jyknight.
Herald added a subscriber: hiraditya.

As part of merging stores we check that fusing the nodes does not
cause a cycle due to one candidate store being indirectly dependent on
another store (this may happen via chained memory copies). This is
done by searching if a store is a predecessor to another store's
value.

Prune the search at the candidate search's root node which is a
predecessor to all candidate stores. This reduces the
size of the subgraph searched in large basic blocks.


Repository:
  rL LLVM

https://reviews.llvm.org/D46955

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46955.147104.patch
Type: text/x-patch
Size: 4982 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180516/3775f344/attachment-0001.bin>


More information about the llvm-commits mailing list