[PATCH] D71866: [amdgpu] Fix scoreboard updating after `s_waitcnt_vscnt`.
Michael Liao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 24 21:49:25 PST 2019
hliao created this revision.
Herald added subscribers: llvm-commits, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, jvesely, kzhuravl, arsenm.
Herald added a project: LLVM.
- Other counters are accidentally cleared.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D71866
Files:
llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
Index: llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+++ llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
@@ -1081,7 +1081,7 @@
assert(II->getOpcode() == AMDGPU::S_WAITCNT_VSCNT);
assert(II->getOperand(0).getReg() == AMDGPU::SGPR_NULL);
ScoreBrackets.applyWaitcnt(
- AMDGPU::Waitcnt(0, 0, 0, II->getOperand(1).getImm()));
+ AMDGPU::Waitcnt(~0u, ~0u, ~0u, II->getOperand(1).getImm()));
}
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71866.235255.patch
Type: text/x-patch
Size: 580 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191225/47766757/attachment.bin>
More information about the llvm-commits
mailing list