[AMDGPU] Correct the setting of `FlatScratchInit`.
authorMichael Liao <michael.hliao@gmail.com>
Thu, 4 Jul 2019 13:29:45 +0000 (13:29 +0000)
committerMichael Liao <michael.hliao@gmail.com>
Thu, 4 Jul 2019 13:29:45 +0000 (13:29 +0000)
commit7a9ad430fec98fa1a0d55812e42243a9ec603779
tree1aa088e284b07460d7da6e4684e7e851b4ca1e3c
parent8351c3276476812b4ea8f9d1031a8edc3ee94a82
[AMDGPU] Correct the setting of `FlatScratchInit`.

Summary: - That flag setting should skip spilling stack slot.

Reviewers: arsenm, rampitec

Subscribers: qcolombet, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D64143

llvm-svn: 365137
llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
llvm/test/CodeGen/AMDGPU/undefined-physreg-sgpr-spill.mir