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)
commitb3931b814adc8a6c3d6b8b1d6a2a0faa6d4cdc52
tree94e9c1ecb57e7a4b42a61d1cfb83cd257f63ecb2
parent52f943b5362f81db68670c018c4a0bb236d0161a
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.

llvm-svn: 225289
llvm/lib/Target/R600/SIInsertWaits.cpp