[llvm] [AMDGPU] Simplify S_WAIT_XCNT insertion. NFC. (PR #145682)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 25 04:59:55 PDT 2025
================
@@ -325,10 +321,8 @@ class WaitcntBrackets {
}
unsigned getRegScore(int GprNo, InstCounterType T) const {
- if (GprNo < NUM_ALL_VGPRS) {
+ if (GprNo < NUM_ALL_VGPRS)
return VgprScores[T][GprNo];
- }
- assert(isSmemCounter(T));
----------------
jayfoad wrote:
Not needed because `getSgprScoresIdx` asserts anyway
https://github.com/llvm/llvm-project/pull/145682
More information about the llvm-commits
mailing list