[llvm] [AMDGPU] Fix comment on DelayInfo::advance (PR #146718)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 2 08:09:36 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-amdgpu
Author: Jay Foad (jayfoad)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/146718.diff
1 Files Affected:
- (modified) llvm/lib/Target/AMDGPU/AMDGPUInsertDelayAlu.cpp (+3-4)
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUInsertDelayAlu.cpp b/llvm/lib/Target/AMDGPU/AMDGPUInsertDelayAlu.cpp
index 383b5c0e9dcd5..44eaebffb70dc 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUInsertDelayAlu.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUInsertDelayAlu.cpp
@@ -156,10 +156,9 @@ class AMDGPUInsertDelayAlu {
SALUCycles = std::max(SALUCycles, RHS.SALUCycles);
}
- // Update this DelayInfo after issuing an instruction. IsVALU should be 1
- // when issuing a (non-TRANS) VALU, else 0. IsTRANS should be 1 when issuing
- // a TRANS, else 0. Cycles is the number of cycles it takes to issue the
- // instruction. Return true if there is no longer any useful delay info.
+ // Update this DelayInfo after issuing an instruction of the specified type.
+ // Cycles is the number of cycles it takes to issue the instruction. Return
+ // true if there is no longer any useful delay info.
bool advance(DelayType Type, unsigned Cycles) {
bool Erase = true;
``````````
</details>
https://github.com/llvm/llvm-project/pull/146718
More information about the llvm-commits
mailing list