[llvm] 88d0751 - AMDGPU: Add debug print to load/store opt for agpr case (#155767)

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 28 19:49:05 PDT 2025


Author: Matt Arsenault
Date: 2025-08-29T11:49:02+09:00
New Revision: 88d075197e04a290f5a2d01bacd600e2bf9b3bf9

URL: https://github.com/llvm/llvm-project/commit/88d075197e04a290f5a2d01bacd600e2bf9b3bf9
DIFF: https://github.com/llvm/llvm-project/commit/88d075197e04a290f5a2d01bacd600e2bf9b3bf9.diff

LOG: AMDGPU: Add debug print to load/store opt for agpr case (#155767)

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp b/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
index 6f2ea8ad1ff01..263f7127fbf10 100644
--- a/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
+++ b/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
@@ -2466,6 +2466,9 @@ SILoadStoreOptimizer::collectMergeableInsts(
       continue;
 
     if (CI.InstClass == DS_WRITE && CI.IsAGPR) {
+      LLVM_DEBUG(
+          dbgs() << "cannot merge ds writes with mixed AGPR and VGPR data\n");
+
       // FIXME: nothing is illegal in a ds_write2 opcode with two AGPR data
       //        operands. However we are reporting that ds_write2 shall have
       //        only VGPR data so that machine copy propagation does not


        


More information about the llvm-commits mailing list