nv50: improve and fix modifier folding optimization
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 15 Sep 2010 11:59:09 +0000 (13:59 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 15 Sep 2010 13:35:14 +0000 (15:35 +0200)
commitc46e7a05e501e02b10dbc06772c0ef01308f60d5
treef3ca808eb0dd1e6376ccd850671a68186b781791
parent16d8f5fee51a4a86f5f0c15228b48d5668ab2be2
nv50: improve and fix modifier folding optimization

Execute before folding loads, because we don't check if it's legal
in lower_mods.
Ensure that a value's insn pointer is updated when transferring it
to a different instruction.
src/gallium/drivers/nv50/nv50_pc.c
src/gallium/drivers/nv50/nv50_pc.h
src/gallium/drivers/nv50/nv50_pc_emit.c
src/gallium/drivers/nv50/nv50_pc_optimize.c