[SelectionDAG][x86] limit post-legalization store merging by type
authorSanjay Patel <spatel@rotateright.com>
Tue, 4 Jun 2019 15:15:59 +0000 (15:15 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 4 Jun 2019 15:15:59 +0000 (15:15 +0000)
commit1e63dd0b44998721fefae9f690882af927ca3c2a
tree17b2765360fbfa694ac2fd77fac88323cd572232
parent880d21d3cbfd143f11c2bd2f5a5d6b46bfcb1a70
[SelectionDAG][x86] limit post-legalization store merging by type

The proposal in D62498 showed that x86 would benefit from vector
store splitting, but that may conflict with the generic DAG
combiner's store merging transforms.

Add memory type to the existing TLI hook that enables the merging
transforms, so we can limit those changes to scalars only for x86.

llvm-svn: 362507
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/Target/AMDGPU/AMDGPUISelLowering.h
llvm/lib/Target/X86/X86ISelLowering.h
llvm/test/CodeGen/X86/vector-trunc-widen.ll