This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Test for in-order waitcnt insertion for bvh instructions
ClosedPublic

Authored by dstuttard on Nov 30 2021, 5:54 AM.

Details

Summary

In-order bvh instructions don't require a waitcnt as order is
guaranteed.

However, waitcnt IS required for other image instruction types vs
bvh.

Pre-commit test for new functionality.

Diff Detail

Event Timeline

dstuttard created this revision.Nov 30 2021, 5:54 AM
dstuttard requested review of this revision.Nov 30 2021, 5:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 30 2021, 5:54 AM
dstuttard updated this revision to Diff 390677.Nov 30 2021, 6:03 AM

Updating with link to change for which this is a pre-commit

(https://reviews.llvm.org/D114794)

foad added inline comments.Nov 30 2021, 6:05 AM
llvm/test/CodeGen/AMDGPU/waitcnt-bvh.mir
4

I think the canonical YAML format is to have --- before each function and ... after it, like this:

---
function goes here
...
8

It looks like these checks are (or could be?) autogenerated, but there's no "autogenerated by" comment on line 1.

dstuttard added inline comments.Nov 30 2021, 6:08 AM
llvm/test/CodeGen/AMDGPU/waitcnt-bvh.mir
4

Ok

8

They weren't autogenerated - but that's a good point, there's no reason why not. I'll update it.

dstuttard updated this revision to Diff 390684.Nov 30 2021, 6:22 AM

Updating test in light of review suggestions

foad accepted this revision.Nov 30 2021, 6:26 AM

LGTM. Maybe wait a little in case people in other time zones have comments.

This revision is now accepted and ready to land.Nov 30 2021, 6:26 AM