[llvm] AMDGPU: Add debug print to load/store opt for agpr case (PR #155767)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 27 23:50:41 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-amdgpu
Author: Matt Arsenault (arsenm)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/155767.diff
1 Files Affected:
- (modified) llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp (+3)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/155767
More information about the llvm-commits
mailing list