AMDGPU/SI: Do not generate s_waitcnt after ds_permute/ds_bpermute
authorChangpeng Fang <changpeng.fang@gmail.com>
Thu, 17 Mar 2016 16:43:50 +0000 (16:43 +0000)
committerChangpeng Fang <changpeng.fang@gmail.com>
Thu, 17 Mar 2016 16:43:50 +0000 (16:43 +0000)
commit234fcb81d3e48dd46fc6f610df77511883b69fd8
tree0dee865863b8c485e3542afc6918e51902649634
parent79cad857a0e8fddccad46fcbc81c0ea66da7cfb7
AMDGPU/SI: Do not generate s_waitcnt after ds_permute/ds_bpermute

Symmary:
  ds_permute/ds_bpermute do not read memory so s_waitcnt is not needed.

Reviewers
  arsenm, tstellarAMD

Subscribers
  llvm-commits, arsenm

Differential Revision:
  http://reviews.llvm.org/D18197

llvm-svn: 263720
llvm/lib/Target/AMDGPU/SIInstrInfo.td
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.ds.bpermute.ll
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.ds.permute.ll