r300/compiler: improve the detection of constants for constant folding
authorMarek Olšák <maraeo@gmail.com>
Tue, 8 Mar 2011 05:37:50 +0000 (06:37 +0100)
committerMarek Olšák <maraeo@gmail.com>
Tue, 8 Mar 2011 05:37:50 +0000 (06:37 +0100)
commit4f3826117957b5ac1554b833af33d342360f655a
tree89d830654f5ecbd3274df306b5c85f869dabe57d
parenteb1acd16130a2945122d373357ee72585e520755
r300/compiler: improve the detection of constants for constant folding

Now the expression V==0 generates one instruction instead of two.
src/mesa/drivers/dri/r300/compiler/radeon_optimize.c