Skip to content

Commit 6878809

Browse files
committed
Revert "[AMDGPU] Do not assume stack size for PAL code object indirect calls"
This reverts commit 3604fdf. It is causing CTS failures with DebugOverlayEnabled including: dEQP-VK.binding_model.descriptor_update.acceleration_structure.ray_query.regular.ahit Change-Id: Ib30e86fdb4d901865778f58448c8147d067897fc
1 parent aaf1697 commit 6878809

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

llvm/lib/Target/AMDGPU/AMDGPUResourceUsageAnalysis.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,14 @@ bool AMDGPUResourceUsageAnalysis::runOnModule(Module &M) {
104104

105105
MachineModuleInfo &MMI = getAnalysis<MachineModuleInfoWrapperPass>().getMMI();
106106
const TargetMachine &TM = TPC->getTM<TargetMachine>();
107-
const MCSubtargetInfo &STI = *TM.getMCSubtargetInfo();
108107
bool HasIndirectCall = false;
109108

110109
CallGraph CG = CallGraph(M);
111110
auto End = po_end(&CG);
112111

113112
// By default, for code object v5 and later, track only the minimum scratch
114113
// size
115-
if (AMDGPU::getCodeObjectVersion(M) >= AMDGPU::AMDHSA_COV5 ||
116-
STI.getTargetTriple().getOS() == Triple::AMDPAL) {
114+
if (AMDGPU::getCodeObjectVersion(M) >= AMDGPU::AMDHSA_COV5) {
117115
if (!AssumedStackSizeForDynamicSizeObjects.getNumOccurrences())
118116
AssumedStackSizeForDynamicSizeObjects = 0;
119117
if (!AssumedStackSizeForExternalCall.getNumOccurrences())

llvm/test/CodeGen/AMDGPU/resource-usage-pal.ll

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)