R600/SI: Fix dependency between instruction writing M0 and S_SENDMSG on VI (v2)
authorMarek Olsak <marek.olsak@amd.com>
Tue, 3 Feb 2015 17:37:52 +0000 (17:37 +0000)
committerMarek Olsak <marek.olsak@amd.com>
Tue, 3 Feb 2015 17:37:52 +0000 (17:37 +0000)
commitb19dbd9eb32d72a55b3bffbc07b042419a86ec9f
tree332d1060d46dd51d363a513ab6339d5a57ddfbc2
parent3cf9267d4e4dbe7ebd21adfaabe4d2ce01456813
R600/SI: Fix dependency between instruction writing M0 and S_SENDMSG on VI (v2)

This fixes a hang when using an empty geometry shader.

v2: - don't add s_nop when followed by s_waitcnt
    - comestic changes

Tested-by: Michel Dänzer <michel.daenzer@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227986 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/SIInsertWaits.cpp
test/CodeGen/R600/llvm.SI.sendmsg-m0.ll [new file with mode: 0644]