Fix some places where we were assuming that memory type had been legalized
authorEric Christopher <echristo@gmail.com>
Wed, 25 Nov 2015 09:11:53 +0000 (09:11 +0000)
committerEric Christopher <echristo@gmail.com>
Wed, 25 Nov 2015 09:11:53 +0000 (09:11 +0000)
commite2698ed29fd20c13f27a286ae2b79e65ba9a5f93
treeda95ca5c966d43d423538767dcc9183ddcc21e2d
parent9c3a9de18eb40e1f6c9b0339f0f9c6949a257f32
Fix some places where we were assuming that memory type had been legalized
to a simple type when lowering a truncating store of a vector type. In this
case for an EVT we'll return Expand as we should in all of the cases anyhow.

The testcase triggered at the one in VectorLegalizer::LegalizeOp, inspection
found the rest.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254061 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/BasicTTIImpl.h
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
test/CodeGen/X86/trunc-store.ll [new file with mode: 0644]