This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/SI: Do not generate s_waitcnt for ds_permute/ds_bpermute Instructions.
ClosedPublic

Authored by cfang on Mar 15 2016, 2:43 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

cfang updated this revision to Diff 50771.Mar 15 2016, 2:43 PM
cfang retitled this revision from to AMDGPU/SI: Do not generate s_waitcnt for ds_permute/ds_bpermute Instructions..
cfang updated this object.
cfang added reviewers: tstellarAMD, arsenm, scchan.
cfang added subscribers: arsenm, llvm-commits.
tstellarAMD accepted this revision.Mar 16 2016, 6:42 AM
tstellarAMD edited edge metadata.

LGTM, but can you add a testcase for this.

This revision is now accepted and ready to land.Mar 16 2016, 6:42 AM
cfang updated this revision to Diff 50888.Mar 16 2016, 3:58 PM
cfang edited edge metadata.

Add test case for ds_permute/ds_bpermute NOT generating s_waitcnts

LGTM. Just a few suggestions to improve the tests before you commit it.

test/CodeGen/AMDGPU/llvm.amdgcn.ds.bpermute.ll
15 ↗(On Diff #50888)

You might want to add a CHECK here for the branch instruction. This will make it more robust.

test/CodeGen/AMDGPU/llvm.amdgcn.ds.permute.ll
15 ↗(On Diff #50888)

Same here.

This revision was automatically updated to reflect the committed changes.