LegalizeDAG: Don't replace vector store with integer if not legal
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 30 Mar 2016 21:15:18 +0000 (21:15 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 30 Mar 2016 21:15:18 +0000 (21:15 +0000)
commit46ba31650e9eb5f95990adc240c7d1e925c57381
treefa57e5c899d2372ae9440d7feace8467347ef3ae
parenta4b1b6ea05645c8baacd5770540cf8c57549632b
LegalizeDAG: Don't replace vector store with integer if not legal

For the same reason as the corresponding load change.

Note that ExpandStore is completely broken for non-byte sized element
vector stores, but preserve the current broken behavior which has tests
for it. The behavior should be the same, but now introduces a new typed
store that is incorrectly split later rather than doing it directly.

llvm-svn: 264928
llvm/include/llvm/Target/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp