Re: [Nouveau] [PATCH 2/3] nv50/ir: Fold IMM into MAD

2015-01-13 Thread Ilia Mirkin
On Tue, Jan 13, 2015 at 3:35 PM, Roy Spliet wrote: > Add a specific optimisation pass for NV50 to check whether SRC0 or SRC1 is > a MOV dst, IMM. If so: fold the IMM in and try to drop the MOV. Must be > done post-RA because it requires that SDST == SSRC2. > > V2: improve readability and add comme

[Nouveau] [PATCH 2/3] nv50/ir: Fold IMM into MAD

2015-01-13 Thread Roy Spliet
Add a specific optimisation pass for NV50 to check whether SRC0 or SRC1 is a MOV dst, IMM. If so: fold the IMM in and try to drop the MOV. Must be done post-RA because it requires that SDST == SSRC2. V2: improve readability and add comments to clarify decisions Signed-off-by: Roy Spliet --- ...