diff options
author | Ian Romanick <[email protected]> | 2016-09-14 13:52:42 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-11-10 14:30:49 -0800 |
commit | f45a2a93aea0a57cf0aa8ee9ca062fcc42407a44 (patch) | |
tree | 85b7c3c1afaaba0042e50621955d1c004250193b /src/compiler/glsl/ir_function.cpp | |
parent | 9788b3b6f363580fd8d9d7e221cab28879e4d169 (diff) |
glsl/standalone: Optimize add-of-neg to subtract
This just makes the output of the standalone compiler a little more
compact.
v2: Fix indexing typo noticed by Iago. Move the add_neg_to_sub_visitor
to it's own header file. Add a unit test that exercises the visitor.
Both the neg_a_plus_b and neg_a_plus_neg_b tests reproduced the bug that
Iago discovered.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir_function.cpp')
0 files changed, 0 insertions, 0 deletions