AMDGPU: Enable LocalStackSlotAllocation pass
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 16 Apr 2016 02:13:37 +0000 (02:13 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 16 Apr 2016 02:13:37 +0000 (02:13 +0000)
commitc10783c42d0f86d46b56c70d0eb27b577051e117
tree9a3ad2fdced0978037ded5e4e00e69da804e7274
parent6fe1ff260b0461437523ac731008a24c9b63b1bc
AMDGPU: Enable LocalStackSlotAllocation pass

This resolves more frame indexes early and folds
the immediate offsets into the scratch mubuf instructions.

This cleans up a lot of the mess that's currently emitted,
such as emitting add 0s and repeatedly initializing the same
register to 0 when spilling.

llvm-svn: 266508
llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
llvm/lib/Target/AMDGPU/SIRegisterInfo.h
llvm/test/CodeGen/AMDGPU/array-ptr-calc-i32.ll
llvm/test/CodeGen/AMDGPU/captured-frame-index.ll