Skip to content

Commit 88d0751

Browse files
authored
AMDGPU: Add debug print to load/store opt for agpr case (#155767)
1 parent 5135dcd commit 88d0751

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2466,6 +2466,9 @@ SILoadStoreOptimizer::collectMergeableInsts(
24662466
continue;
24672467

24682468
if (CI.InstClass == DS_WRITE && CI.IsAGPR) {
2469+
LLVM_DEBUG(
2470+
dbgs() << "cannot merge ds writes with mixed AGPR and VGPR data\n");
2471+
24692472
// FIXME: nothing is illegal in a ds_write2 opcode with two AGPR data
24702473
// operands. However we are reporting that ds_write2 shall have
24712474
// only VGPR data so that machine copy propagation does not

0 commit comments

Comments
 (0)