pan/bi: Set branch_constant if there is a branch

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5260>
This commit is contained in:
Alyssa Rosenzweig 2020-05-28 13:14:53 -04:00 committed by Marge Bot
parent b9967ab6da
commit cdff3ebc9a
1 changed files with 4 additions and 0 deletions

View File

@ -199,6 +199,10 @@ bi_schedule(bi_context *ctx)
u->constant_count = 1;
u->constants[0] = ins->constant.u64;
/* No indirect jumps yet */
if (ins->type == BI_BRANCH)
u->branch_constant = true;
u->clause_type = bi_clause_type_for_ins(ins);
list_addtail(&u->link, &bblock->clauses);