summaryrefslogtreecommitdiff
path: root/src/glsl/ir_sub_to_add_neg.cpp
AgeCommit message (Collapse)Author
2010-08-09glsl2: Add a pass to transform ir_binop_sub to add(op0, neg(op1))Eric Anholt
All the current HW backends transform subtract to adding the negation, so I haven't bothered peepholing it back out in Mesa IR. This allows some subtract of subtract to get removed in ir_algebraic.