OSDN Git Service

AMDGPU: Always use s33 for global scratch wave offset
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 20 Jun 2019 21:58:24 +0000 (21:58 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 20 Jun 2019 21:58:24 +0000 (21:58 +0000)
commit2e84e8180ab53192476296b7fbc52c40ba728d90
tree65671938bf47611a4e58df05cef4b5ffae81cfe4
parent02c0b2da0a44618c0b97b6aa815d5d633339e104
AMDGPU: Always use s33 for global scratch wave offset

Every called function could possibly need this to calculate the
absolute address of stack objectst, and this avoids inserting a copy
around every call site in the kernel. It's also somewhat cleaner to
keep this in a callee saved SGPR.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363990 91177308-0d34-0410-b5e6-96231b3b80d8
30 files changed:
lib/Target/AMDGPU/SIISelLowering.cpp
lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
test/CodeGen/AMDGPU/bswap.ll
test/CodeGen/AMDGPU/build-vector-packed-partial-undef.ll
test/CodeGen/AMDGPU/call-argument-types.ll
test/CodeGen/AMDGPU/call-graph-register-usage.ll
test/CodeGen/AMDGPU/call-preserved-registers.ll
test/CodeGen/AMDGPU/call-waitcnt.ll
test/CodeGen/AMDGPU/callee-frame-setup.ll
test/CodeGen/AMDGPU/callee-special-input-sgprs.ll
test/CodeGen/AMDGPU/callee-special-input-vgprs.ll
test/CodeGen/AMDGPU/chain-hi-to-lo.ll
test/CodeGen/AMDGPU/cross-block-use-is-not-abi-copy.ll
test/CodeGen/AMDGPU/frame-index-elimination.ll
test/CodeGen/AMDGPU/function-returns.ll
test/CodeGen/AMDGPU/known-never-snan.ll
test/CodeGen/AMDGPU/llvm.amdgcn.implicitarg.ptr.ll
test/CodeGen/AMDGPU/load-hi16.ll
test/CodeGen/AMDGPU/load-lo16.ll
test/CodeGen/AMDGPU/mubuf-legalize-operands.ll
test/CodeGen/AMDGPU/mul_uint24-amdgcn.ll
test/CodeGen/AMDGPU/nested-calls.ll
test/CodeGen/AMDGPU/pei-reg-scavenger-position.mir
test/CodeGen/AMDGPU/shl_add_ptr.ll
test/CodeGen/AMDGPU/sibling-call.ll
test/CodeGen/AMDGPU/spill-offset-calculation.ll
test/CodeGen/AMDGPU/stack-realign.ll
test/CodeGen/AMDGPU/store-hi16.ll
test/CodeGen/AMDGPU/wave32.ll
test/CodeGen/MIR/AMDGPU/machine-function-info.ll