AMDGPU/SI: Fix some invaild assumptions when folding 64-bit immediates
authorTom Stellard <thomas.stellard@amd.com>
Sat, 29 Aug 2015 01:58:21 +0000 (01:58 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Sat, 29 Aug 2015 01:58:21 +0000 (01:58 +0000)
commit127a3d74f1d49cd4f1b1b92a49649e60c857ad50
treed22fb49b64958db06562825ddf6267ee7b58bba2
parent0554ee323ccb955c7ee74ba90f974ffc7e7f6dc0
AMDGPU/SI: Fix some invaild assumptions when folding 64-bit immediates

Summary:
We were assuming tha if the use operand had a sub-register that
the immediate was 64-bits, but this was breaking the case of
folding a 64-bit immediate into another 64-bit instruction.

Reviewers: arsenm

Subscribers: arsenm, llvm-commits

Differential Revision: http://reviews.llvm.org/D12255

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246354 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIFoldOperands.cpp