Re: [Mesa-dev] [PATCH 2/3] i965/fs: Allow CSE to handle MULs with negated arguments.

2015-03-31 Thread Matt Turner
On Wed, Feb 11, 2015 at 2:54 PM, Matt Turner wrote: > mul x, -y is equivalent to mul -x, y; and mul x, y is the negation of > mul x, -y. > > total instructions in shared programs: 5937689 -> 5929512 (-0.14%) > instructions in affected programs: 871152 -> 862975 (-0.94%) > helped:

[Mesa-dev] [PATCH 2/3] i965/fs: Allow CSE to handle MULs with negated arguments.

2015-02-11 Thread Matt Turner
mul x, -y is equivalent to mul -x, y; and mul x, y is the negation of mul x, -y. total instructions in shared programs: 5937689 -> 5929512 (-0.14%) instructions in affected programs: 871152 -> 862975 (-0.94%) helped:4228 HURT: 17