aco: add Instruction::usesModifiers() and add more checks in the optimizer

Merged Rhys Perry requested to merge pendingchaos/mesa:aco_opt_mods into master

No pipeline-db changes.

Merge request reports