agx: optimize signext imad

improves clpeak short.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32081>
This commit is contained in:
Alyssa Rosenzweig
2024-11-03 22:11:28 -05:00
committed by Marge Bot
parent cf0261980a
commit c9e42073a1
+1 -1
View File
@@ -562,7 +562,7 @@ agx_optimizer_forward(agx_context *ctx)
agx_optimizer_ballot(ctx, defs, I);
} else if (I->op == AGX_OPCODE_BITOP) {
agx_optimizer_bitop(defs, I);
} else if (I->op == AGX_OPCODE_IADD) {
} else if (I->op == AGX_OPCODE_IADD || I->op == AGX_OPCODE_IMAD) {
agx_optimizer_signext(defs, I);
}
}