diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-03-05 16:30:58 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-07 00:37:39 +0000 |
commit | 2e9b5f8ef4b80e57c9653fcdc5e0867e9dd338a6 (patch) | |
tree | f3640ede58e62412136161092d81a764daeeda8d /src/panfrost/bifrost | |
parent | 5c7ee8a9746b1ae7d852b1ae3e5408378547c156 (diff) |
pan/bi: Don't print types for unconditional branches
There's nothing to type!
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4097>
Diffstat (limited to 'src/panfrost/bifrost')
-rw-r--r-- | src/panfrost/bifrost/bi_print.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/panfrost/bifrost/bi_print.c b/src/panfrost/bifrost/bi_print.c index 81b0f4aa0fc..68cbbedbb82 100644 --- a/src/panfrost/bifrost/bi_print.c +++ b/src/panfrost/bifrost/bi_print.c @@ -317,9 +317,11 @@ bi_print_instruction(bi_instruction *ins, FILE *fp) if (bi_is_src_swizzled(ins, s)) bi_print_swizzle(ins, fp); - if (ins->type == BI_CONVERT && s == 0) - bi_print_alu_type(ins->src_types[s], fp); - else if ((ins->type == BI_BRANCH || ins->type == BI_CSEL) && s < 2) + bool is_convert = ins->type == BI_CONVERT && s == 0; + bool is_branch = ins->type == BI_BRANCH && s < 2 && ins->branch.cond != BI_COND_ALWAYS; + bool is_csel = ins->type == BI_CSEL && s < 2; + + if (is_convert || is_branch || is_csel) bi_print_alu_type(ins->src_types[s], fp); if (s < BIR_SRC_COUNT) |