[PATCH] D17039: AMDGPU: Set flat_scratch from flat_scratch_init reg
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 9 13:42:01 PST 2016
arsenm created this revision.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
Herald added subscribers: arsenm, qcolombet.
This was hardcoded to the static private size, but this
would be missing the offset and additional size for someday
when we have dynamic sizing.
Also stops always initializing flat_scratch even when unused.
In the future we should stop emitting this unless flat instructions
are used to access private memory. For example this will initialize
it almost always on VI because flat is used for global access.
http://reviews.llvm.org/D17039
Files:
lib/Target/AMDGPU/SIFrameLowering.cpp
lib/Target/AMDGPU/SIISelLowering.cpp
lib/Target/AMDGPU/SILowerControlFlow.cpp
lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
lib/Target/AMDGPU/SIMachineFunctionInfo.h
lib/Target/AMDGPU/SIRegisterInfo.cpp
lib/Target/AMDGPU/SIRegisterInfo.h
test/CodeGen/AMDGPU/cgp-addressing-modes.ll
test/CodeGen/AMDGPU/ci-use-flat-for-global.ll
test/CodeGen/AMDGPU/global_atomics.ll
test/CodeGen/AMDGPU/hsa.ll
test/CodeGen/AMDGPU/large-alloca-compute.ll
test/CodeGen/AMDGPU/private-memory.ll
test/CodeGen/AMDGPU/vgpr-spill-emergency-stack-slot-compute.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17039.47359.patch
Type: text/x-patch
Size: 36356 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160209/4775d7c7/attachment-0001.bin>
More information about the llvm-commits
mailing list