Restrict FindBetterChain DAG combines to unindexed nodes
authorHal Finkel <hfinkel@anl.gov>
Fri, 24 Jan 2014 18:25:26 +0000 (18:25 +0000)
committerHal Finkel <hfinkel@anl.gov>
Fri, 24 Jan 2014 18:25:26 +0000 (18:25 +0000)
commit08aa5bf1d544774d4689521b525a34a0807278ee
tree2a311ee1886a5bf335e3ccd94208eadecb967cb5
parentfb282c68b7a31e8ee2810c81f5a6ed06e77cf7d1
Restrict FindBetterChain DAG combines to unindexed nodes

These transformations obviously won't work for indexed (pre/post-inc) loads and
stores. In practice, I'm not sure there is any benefit to enabling them for
indexed nodes because other transformations that these might enable likely also
won't handle indexed nodes.

I don't have an in-tree test case that hits this problem, but an upcoming bug
fix will make it much more likely.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200023 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp