mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
entel/compiler: Simplify new_idom reduction in dominance tree calculation
Trivial, just use a few less tokens to do the same thing. Reviewed-by: Matt Turner <mattst88@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4012>
This commit is contained in:
parent
c9a608c090
commit
f6cdf66cd6
1 changed files with 2 additions and 5 deletions
|
|
@ -554,11 +554,8 @@ idom_tree::idom_tree(const backend_shader *s) :
|
|||
bblock_t *new_idom = NULL;
|
||||
foreach_list_typed(bblock_link, parent_link, link, &block->parents) {
|
||||
if (parent(parent_link->block)) {
|
||||
if (new_idom == NULL) {
|
||||
new_idom = parent_link->block;
|
||||
} else if (parent(parent_link->block) != NULL) {
|
||||
new_idom = intersect(parent_link->block, new_idom);
|
||||
}
|
||||
new_idom = (new_idom ? intersect(new_idom, parent_link->block) :
|
||||
parent_link->block);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue