Skip to content

Commit 1f86deb

Browse files
committed
AMDGPU: Add debug printing for early exit if there are no AGPRs allocated
1 parent d218789 commit 1f86deb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPURewriteAGPRCopyMFMA.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,10 @@ bool AMDGPURewriteAGPRCopyMFMAImpl::run(MachineFunction &MF) const {
9696
return false;
9797

9898
// Early exit if no AGPRs were assigned.
99-
if (!LRM.isPhysRegUsed(AMDGPU::AGPR0))
99+
if (!LRM.isPhysRegUsed(AMDGPU::AGPR0)) {
100+
LLVM_DEBUG(dbgs() << "skipping function that did not allocate AGPRs\n");
100101
return false;
102+
}
101103

102104
bool MadeChange = false;
103105

0 commit comments

Comments
 (0)