[PATCH] D28936: AMDGPU: Always allocate emergency stack slot at offset 0
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 19 21:20:23 PST 2017
arsenm created this revision.
Herald added subscribers: tony-tye, yaxunl, nhaehnle, wdng, kzhuravl, qcolombet, MatzeB.
Herald added a reviewer: tstellarAMD.
This allows us to ensure that 0 is never a valid pointer
to a user object, and ensures that the offset is always legal
without needing a register to access it. This comes at the cost
of usable offsets and wasted stack space.
https://reviews.llvm.org/D28936
Files:
lib/Target/AMDGPU/SIFrameLowering.cpp
lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
test/CodeGen/AMDGPU/amdgpu.private-memory.ll
test/CodeGen/AMDGPU/array-ptr-calc-i32.ll
test/CodeGen/AMDGPU/captured-frame-index.ll
test/CodeGen/AMDGPU/cgp-addressing-modes.ll
test/CodeGen/AMDGPU/commute-compares.ll
test/CodeGen/AMDGPU/control-flow-fastregalloc.ll
test/CodeGen/AMDGPU/extload-private.ll
test/CodeGen/AMDGPU/insert_vector_elt.ll
test/CodeGen/AMDGPU/kernarg-stack-alignment.ll
test/CodeGen/AMDGPU/local-stack-slot-bug.ll
test/CodeGen/AMDGPU/private-element-size.ll
test/CodeGen/AMDGPU/scratch-buffer.ll
test/CodeGen/AMDGPU/si-spill-sgpr-stack.ll
test/CodeGen/AMDGPU/spill-m0.ll
test/CodeGen/AMDGPU/spill-wide-sgpr.ll
test/CodeGen/AMDGPU/wqm.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28936.85096.patch
Type: text/x-patch
Size: 54953 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170120/cf9163ac/attachment.bin>
More information about the llvm-commits
mailing list