i965/vec4: Detect and delete useless MOVs.
authorMatt Turner <mattst88@gmail.com>
Mon, 21 Sep 2015 20:58:19 +0000 (13:58 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 23 Sep 2015 04:20:29 +0000 (21:20 -0700)
commit10da96887c785930c2553b2d5bde91e52b8b034a
tree7fe21c647ec686f68b1fc0cc78e3179d5894bf46
parente7496fed2a2428b704b8aeab5f42df8e6a2f7ae1
i965/vec4: Detect and delete useless MOVs.

With NIR:

instructions in affected programs:     111508 -> 109193 (-2.08%)
helped:                                507

Without NIR:

instructions in affected programs:     28763 -> 28474 (-1.00%)
helped:                                186

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4.cpp