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:
parent
068e9848ba
commit
edf774bb7e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue