Address comments
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUEventTracking.cpp b/llvm/lib/Target/AMDGPU/AMDGPUEventTracking.cpp index 1dd93bd..b806e70 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUEventTracking.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUEventTracking.cpp
@@ -68,12 +68,10 @@ ++CD.Count; CD.Timeline.push_back(Rec); -#ifndef NDEBUG LLVM_DEBUG(if (EventTrackerPrintAll) { dbgs().indent(2) << "Updated Timeline:\n"; print(dbgs(), CD, /*Indent=*/4); }); -#endif } assert(FoundMatch && "Event has no matching InstCounterType!"); @@ -108,12 +106,10 @@ LLVM_DEBUG(dbgs() << " | => Updated Count:" << CD.Count << '\n'); -#ifndef NDEBUG LLVM_DEBUG(if (EventTrackerPrintAll) { dbgs().indent(2) << "Updated Timeline:\n"; print(dbgs(), CD, /*Indent=*/4); }); -#endif } #ifdef EXPENSIVE_CHECKS
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUEventTracking.h b/llvm/lib/Target/AMDGPU/AMDGPUEventTracking.h index 512d058..1aba3af 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUEventTracking.h +++ b/llvm/lib/Target/AMDGPU/AMDGPUEventTracking.h
@@ -15,9 +15,9 @@ /// - \ref CounterInfo: constant per-counter description (events, limit). /// - \ref EventTrackerRecord: a (MachineInstr, SingleHWEvent) pair. /// - \ref EventTracker: per-MBB state; for each counter, a count and a -/// timeline of records ordered from oldest to youngest. Driven by the -/// client while visiting the MBB: \ref EventTracker::record adds events, -/// and \ref EventTracker::drain models waits. +/// sequence of records ordered from oldest to youngest. Driven by the +/// client while visiting the MBB: \ref EventTracker::record appends new +/// events, and \ref EventTracker::drain removes oldest events. /// /// This is a low-level API. It can be used directly for trivial waitcnt /// calculation (e.g. wait on a specific MI), but the typical usage is for @@ -55,7 +55,7 @@ /// Type of counter this is. InstCounterType CounterT; - /// HWEvents for this counter. + /// HWEvents that increment this counter. HWEvents Events; /// Hardware limit for this counter. unsigned Limit;