prog_optimize: Add simplify CMP optimization pass
authorTom Stellard <tstellar@gmail.com>
Tue, 5 Apr 2011 05:07:55 +0000 (22:07 -0700)
committerTom Stellard <tstellar@gmail.com>
Sat, 16 Apr 2011 20:55:55 +0000 (13:55 -0700)
commit97535699ee610a2f66732609f966102150847d3c
tree2dafbce19e80aceaed22d1b89d031d34329506e1
parent257cc48de2f4e472eb651a4c70042e5cb6b9fe0e
prog_optimize: Add simplify CMP optimization pass

This pass coverts CMP T0, T1 T2 T0 -> MOV T0, T2 when the CMP
instruction is the first instruction to write to register T0.
This pass is useful for hardware that requires a lot of lowering passes
that generate many CMP instructions.
src/mesa/program/prog_optimize.c