[llvm] e717e50 - [AMDGPU] Fix comment on DelayInfo::advance (#146718)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 2 09:19:00 PDT 2025
Author: Jay Foad
Date: 2025-07-02T17:18:57+01:00
New Revision: e717e503cae19e7e965972724a1476b2fa66ad2d
URL: https://github.com/llvm/llvm-project/commit/e717e503cae19e7e965972724a1476b2fa66ad2d
DIFF: https://github.com/llvm/llvm-project/commit/e717e503cae19e7e965972724a1476b2fa66ad2d.diff
LOG: [AMDGPU] Fix comment on DelayInfo::advance (#146718)
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPUInsertDelayAlu.cpp
Removed:
################################################################################
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;
More information about the llvm-commits
mailing list