Skip to content

Commit

Permalink
Update llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jhuber6 authored Jul 20, 2024
1 parent 89ad919 commit 79e481e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,7 @@ void AMDGPUAsmPrinter::emitResourceUsageRemarks(
return;

// Currently non-kernel functions have no resources to emit.
if (MF.getFunction().getCallingConv() != CallingConv::AMDGPU_KERNEL)
if (!isEntryFunctionCC(MF.getFunction().getCallingConv()))
return;

auto EmitResourceUsageRemark = [&](StringRef RemarkName,
Expand Down

0 comments on commit 79e481e

Please sign in to comment.