aco: value number instructions using the execution mask
authorDaniel Schürmann <daniel@schuermann.dev>
Mon, 11 Nov 2019 10:41:31 +0000 (11:41 +0100)
committerTimur Kristóf <timur.kristof@gmail.com>
Thu, 14 Nov 2019 16:27:10 +0000 (17:27 +0100)
commit9d3e0705240333d07c028cf0e682d1e393e63020
treee4d4918b651a51211667496942edbce809c0878e
parent8657eede8aec88537d64bbd86e1401018992acf1
aco: value number instructions using the execution mask

This patch tries to give instructions with the same execution
mask also the same pass_flags and enables VN for SALU instructions
using exec as Operand.
This patch also adds back VN for VOPC instructions and removes VN for phis.

v2 (by Timur Kristóf):
- Fix some regressions.
v3 (by Daniel Schürmann):
- Fix additional issues

Reviewed-By: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
src/amd/compiler/aco_opt_value_numbering.cpp