gpu.c: get_non_parallel_subtree_filters: select subtrees based on node type
commit6f6f518282533b67851c434fdc70db75b3d781f0
authorSven Verdoolaege <sven.verdoolaege@gmail.com>
Fri, 24 Dec 2021 14:55:33 +0000 (24 15:55 +0100)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Mon, 27 Dec 2021 10:44:12 +0000 (27 11:44 +0100)
tree03a849ecd61ef2e8175b9b345e3cb83d78994f1e
parented980c1886ec77f8c218d427ef3a7ed6a24279df
gpu.c: get_non_parallel_subtree_filters: select subtrees based on node type

The function get_non_parallel_subtree_filters selects either
the initial non-parallel subtrees or all non-parallel subtrees.
Originally, the choice was made based on a function parameter,
but in the calls of this function this parameter is uniquely
determined by the node type.
Directly use the node type inside get_non_parallel_subtree_filters.
This makes it easier to introduce a function parameter
to choose between the initial and the final subtrees
(for sequence nodes) in the next commit.

Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
gpu.c