Displaying 1 result from an estimated 1 matches for "pattersn".
Did you mean:
patterns
2015 Jan 01
0
[PATCH] nv50/ir: fold MAD when one of the multiplicands is const
Fold MAD dst, src0, immed, src2 (or src0/immed swapped) when
- immed = 0 -> MOV dst, src2
- immed = +/- 1 -> ADD dst, src0, src2
These types of MAD pattersn were observed in some st/nine shaders.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
Haven't tested this enough to push yet, but thought I'd get it out there.
Passes some simple test cases.
.../drivers/nouveau/codegen/nv50_ir_peephole.cpp | 20 ++++++++++++++++++++...