nv50/ir: fold fma/mad when all 3 args are immediates
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 3 Dec 2015 02:02:12 +0000 (21:02 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 4 Dec 2015 04:02:57 +0000 (23:02 -0500)
commita3722b81f534598f25d9d155a6d30bc59a6f4e59
treef3fe179124ccbf026f7a44a3880b622e07134a8b
parent2b98914fe01f1c7b2de8a096c8923b3ab0a69578
nv50/ir: fold fma/mad when all 3 args are immediates

This happens pretty rarely, but might as well do it when it does.

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