AMDGPU: Stop assuming vreg for build_vector
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 2 Nov 2015 23:30:48 +0000 (23:30 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 2 Nov 2015 23:30:48 +0000 (23:30 +0000)
commit142cd116fa8031978612aeb364a4b80018a4c89f
tree61d362b46165314cedae6197544121e34bc17b57
parent93508f22418270563d527fe41285ba27c2fe4ce1
AMDGPU: Stop assuming vreg for build_vector

This was causing a variety of test failures when v2i64
is added as a legal type.

SIFixSGPRCopies should correctly handle the case of vector inputs
to a scalar reg_sequence, so this isn't necessary anymore. This
was hiding some deficiencies in how reg_sequence is handled later,
but this shouldn't be a problem anymore since the register class
copy of a reg_sequence is now done before the reg_sequence.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251860 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
lib/Target/AMDGPU/SIFixSGPRCopies.cpp
test/CodeGen/AMDGPU/split-scalar-i64-add.ll