aco: check usesModifiers() when identifying a neg/abs
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 11 Dec 2019 19:41:22 +0000 (19:41 +0000)
committerRhys Perry <pendingchaos02@gmail.com>
Mon, 13 Jan 2020 13:26:43 +0000 (13:26 +0000)
commitf29a5a205c11990111fc4eedee423e2b904537b2
treee408e8fbf7c274dcae0eae706664d8f118e88485
parent46fb341b8d719426c843138595949d16bf1b7dc4
aco: check usesModifiers() when identifying a neg/abs

This was fine because a literal used to mean that it didn't use modifiers,
but now VOP3 can take a literal on GFX10.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-By: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3081>
src/amd/compiler/aco_optimizer.cpp