[llvm] [AMDGPU] Mark ASYNCMARK as meta instruction to fix hazard cycle miscounting (PR #189981)
Sameer Sahasrabuddhe via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 4 20:11:40 PDT 2026
ssahasra wrote:
> Seems messy, could we create another property like meta that (right now) only asyncmark would have and that the hazard recognizer could skip?
Yeah that sounds like a good direction to take. But this is orthogonal and hazard recognizer does not need to be about it, though. Say the new property was `isFoo`, then asyncmark would have both properties `isMeta` and `isFoo`. All instructions that `SIInsertWaitcnts` cares about would also have the property `isFoo`, independent of anything else. Then the loop that skips on `isMeta` can be replaced with `!isFoo`.
https://github.com/llvm/llvm-project/pull/189981
More information about the llvm-commits
mailing list