[llvm] [AMDGPU][SIInsertWaitcnts][NFC] Common InstCounterType printer (PR #187559)
Sameer Sahasrabuddhe via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 29 19:21:47 PDT 2026
================
@@ -15,16 +15,19 @@ iota_range<InstCounterType> inst_counter_types(InstCounterType MaxCounter) {
return enum_seq(LOAD_CNT, MaxCounter);
}
-StringLiteral getInstCounterName(InstCounterType T) {
+StringLiteral getInstCounterName(InstCounterType T, bool HasExtendedWaitcnts) {
switch (T) {
case LOAD_CNT:
- return "LOAD_CNT";
+ return HasExtendedWaitcnts ? StringLiteral("LOAD_CNT")
+ : StringLiteral("VM_CNT");
case DS_CNT:
- return "DS_CNT";
+ return HasExtendedWaitcnts ? StringLiteral("DS_CNT")
----------------
ssahasra wrote:
Then in my eyes, this PR has no value other than moving things around a bit, and should be superseded by that discussion. There doesn't seem to be any urgent reason to make this NFC change.
https://github.com/llvm/llvm-project/pull/187559
More information about the llvm-commits
mailing list