AMDGPU/SI: Fold operands through REG_SEQUENCE instructions
authorTom Stellard <thomas.stellard@amd.com>
Wed, 9 Sep 2015 15:43:26 +0000 (15:43 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 9 Sep 2015 15:43:26 +0000 (15:43 +0000)
commit6680fc357944e670a57f865d8a5457e73c7e92b7
tree49a816845cdbf93f3d8560096010472ec8f7638c
parent076967c8064b62b0b3563af71bc4f570bb37060d
AMDGPU/SI: Fold operands through REG_SEQUENCE instructions

Summary:
This helps mostly when we use add instructions for address calculations
that contain immediates.

Reviewers: arsenm

Subscribers: arsenm, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247157 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIFoldOperands.cpp
test/CodeGen/AMDGPU/cgp-addressing-modes.ll
test/CodeGen/AMDGPU/merge-stores.ll
test/CodeGen/AMDGPU/select64.ll