aco/gfx10: Mitigate SMEMtoVectorWriteHazard.
authorTimur Kristóf <timur.kristof@gmail.com>
Thu, 24 Oct 2019 09:45:27 +0000 (11:45 +0200)
committerTimur Kristóf <timur.kristof@gmail.com>
Fri, 25 Oct 2019 08:10:42 +0000 (10:10 +0200)
commit09d676d81ab6e604f73f65ad696a9996312f93a4
tree9c3e4f3e1323c64ba25952f3a01df40d4867ac53
parentd6dfce02d074d615a3b88a3fccd8ee8c7e13c010
aco/gfx10: Mitigate SMEMtoVectorWriteHazard.

There is a hazard that happens when an SMEM instruction
reads an SGPR and then a VALU instruction writes that same SGPR.
This commit adds a workaround that avoids the problem.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
src/amd/compiler/README
src/amd/compiler/aco_insert_NOPs.cpp