mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-20 23:10:30 +01:00
pan/bi: Clarify the logic of bi_reconverge_branches
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
This commit is contained in:
parent
30f8fb82c9
commit
a6ccbf48e9
1 changed files with 3 additions and 3 deletions
|
|
@ -197,10 +197,10 @@ bi_reconverge_branches(bi_block *block)
|
|||
if (block->successors[1])
|
||||
return true;
|
||||
|
||||
/* Must have at least one successor */
|
||||
struct bi_block *succ = block->successors[0];
|
||||
assert(succ->predecessors);
|
||||
unsigned count = succ->predecessors->entries;
|
||||
|
||||
/* Reconverge if there are multiple predecessors */
|
||||
return (count != 1);
|
||||
/* Reconverge if the successor has multiple predecessors */
|
||||
return (succ->predecessors->entries > 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue