[PATCH] D40091: [AMDGPU] Add options for waitcnt pass debugging; add instr count in debug output.
Konstantin Zhuravlyov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 15 10:46:22 PST 2017
kzhuravl added a comment.
This will be pretty useful. Thanks!
================
Comment at: lib/Target/AMDGPU/SIInsertWaitcnts.cpp:426-428
+ T = (enum InstCounterType)(T + 1))
+ if (ForceSwaitcnt[T] > 0)
+ return true;
----------------
tabs?
================
Comment at: lib/Target/AMDGPU/SIInsertWaitcnts.cpp:1168-1174
+ for (enum InstCounterType T = VM_CNT; T < NUM_INST_CNTS;
+ T = (enum InstCounterType)(T + 1)) {
+ if (ForceSwaitcnt[T] > 0 ) {
+ DEBUG(dbgs() << "ForceSwaitcnt[" << T << "]: "
+ << ForceSwaitcnt[T] << '\n';);
+ }
+ }
----------------
tabs?
================
Comment at: lib/Target/AMDGPU/SIInsertWaitcnts.cpp:1186-1189
+ for (enum InstCounterType T = VM_CNT; T < NUM_INST_CNTS;
+ T = (enum InstCounterType)(T + 1)) {
+ --ForceSwaitcnt[T];
+ }
----------------
tabs?
https://reviews.llvm.org/D40091
More information about the llvm-commits
mailing list