pan/bi: Remove redundant check in clamp fusing

Already checked above.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
This commit is contained in:
Alyssa Rosenzweig 2021-07-21 10:54:53 -04:00 committed by Marge Bot
parent 07b259defc
commit 0149dee377

View file

@ -186,7 +186,6 @@ bi_optimizer_clamp(bi_instr *I, bi_instr *use)
if (bi_opcode_props[use->op].size != bi_opcode_props[I->op].size) return false;
if (!bi_is_fclamp(use)) return false;
if (!bi_takes_clamp(I)) return false;
if (use->src[0].neg || use->src[0].abs) return false;
I->clamp = bi_compose_clamp(I->clamp, use->clamp);
I->dest[0] = use->dest[0];