Skip to content

nir: Flatten some branches with one-invocation condition

Timur Kristóf requested to merge Venemo/mesa:nir_flatten_elect_branches into main

We know for sure that such a branch is always taken (by exactly 1 invocation in every subgroup) so we can flatten them. This allows the backend to remove a jump instruction.

Fossil DB stats were made with MR !17921 (merged) merged for ACO.

Edited by Timur Kristóf

Merge request reports