nv50/ir: change the way float face is returned
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 5 Jan 2015 17:44:10 +0000 (12:44 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 10 Feb 2015 13:01:46 +0000 (08:01 -0500)
commit354206f407fffd5f0b553dcbcc46b178d0b22c47
tree978259524eb1cde3747032def622ee592555b3a6
parent480ee1f0b46a916b91a9530d7384a58c8a87d779
nv50/ir: change the way float face is returned

The old way made it impossible for the optimizer to reason about what
was going on. The new way is the same number of instructions (the neg
gets folded into the cvt) but enables the optimizer to be cleverer if
comparing to a constant (most common case). [The optimizer is presently
not sufficiently clever to work this out, but it could relatively easily
be made to be. The old way would have required significant complexity to
work out.]

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nv50.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp