[DAGCombiner] Don't add volatile or indexed stores to ChainedStores
authorJunmo Park <junmoz.park@samsung.com>
Thu, 28 Jan 2016 06:23:33 +0000 (06:23 +0000)
committerJunmo Park <junmoz.park@samsung.com>
Thu, 28 Jan 2016 06:23:33 +0000 (06:23 +0000)
commitb3327b700747d02ddc9e33cc47754e995b15717c
treecf731e15ff2f64fefa7ae27d3976ae390ee60e4a
parent208ee5a09da49ad1f5fea60a3e12f6ac9ed6f709
[DAGCombiner] Don't add volatile or indexed stores to ChainedStores

Summary:
findBetterNeighborChains does not handle volatile or indexed stores.
However, it did not check when adding stores to ChainedStores.

Reviewers: arsenm

Differential Revision: http://reviews.llvm.org/D16463

llvm-svn: 259024
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/AArch64/aarch64-DAGCombine-findBetterNeighborChains-crash.ll [new file with mode: 0644]