aco: add Instruction::usesModifiers() and add more checks in the optimizer
authorRhys Perry <pendingchaos02@gmail.com>
Tue, 29 Oct 2019 13:59:59 +0000 (13:59 +0000)
committerRhys Perry <pendingchaos02@gmail.com>
Fri, 8 Nov 2019 00:14:06 +0000 (00:14 +0000)
commit78e3ea9a0fa8b80760f0f23ef0315c9428a2c946
treec01b5d666a1e7f3b53fdbbe687f12ef32a91e1eb
parent76544f632d98c8d7462c863b783fbe9e9a2d885c
aco: add Instruction::usesModifiers() and add more checks in the optimizer

No pipeline-db changes.

v2: use early-exit for VOP3

Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> (v1)
src/amd/compiler/aco_ir.h
src/amd/compiler/aco_optimizer.cpp