DAGCombiner: Replace store of FP constant after attemping store merges
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 21 Sep 2015 15:59:46 +0000 (15:59 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 21 Sep 2015 15:59:46 +0000 (15:59 +0000)
commit3f80d148b1b3ac3fb6756f6458813a9eabb81ecb
tree60ac48fd439658b9947b7be4fc5c1748581cb346
parent49b6dc35f7f3c59b6243211af0aab775e9a33818
DAGCombiner: Replace store of FP constant after attemping store merges

If storing multiple FP constants, some subset of the stores
would be replaced with integers due to visit order, so
MergeConsecutiveStores would only partially merge
these.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248169 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/AMDGPU/merge-stores.ll
test/CodeGen/PowerPC/vector-merge-store-fp-constants.ll [new file with mode: 0644]
test/CodeGen/X86/vector-merge-store-fp-constants.ll [new file with mode: 0644]