nv50/ir: we can't do the add to mad conversion when the mul saturates

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
Karol Herbst
2016-01-28 16:45:58 +01:00
committed by Ilia Mirkin
parent 068e9848ba
commit edf774bb7e

View File

@@ -1635,6 +1635,9 @@ AlgebraicOpt::tryADDToMADOrSAD(Instruction *add, operation toOp)
if (src->getUniqueInsn() && src->getUniqueInsn()->bb != add->bb)
return false;
if (src->getInsn()->saturate)
return false;
if (src->getInsn()->postFactor)
return false;
if (toOp == OP_SAD) {