R600/SI: Fix dependency calculation for DS writes instructions in SIInsertWaits
authorTom Stellard <thomas.stellard@amd.com>
Tue, 6 Jan 2015 19:52:04 +0000 (19:52 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 6 Jan 2015 19:52:04 +0000 (19:52 +0000)
commitfad04531a9ce9fa816f65ec8fc902e4392cfcb4b
tree1b3bb62ff5d0c0ab9104a37e4352734e1ef85a93
parentd2c42b9617aa02b16a5659609443080b6f30b635
R600/SI: Fix dependency calculation for DS writes instructions in SIInsertWaits

In DS write instructions, the address operand comes before the value
operand(s) which is reversed from every other instruction type.

The SIInsertWait assumed that the first use for each instruction
was the value, so for DS write it was protecting the address
operand with s_waitcnt instructions when it should have been
protecting the value operand.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225289 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/SIInsertWaits.cpp