6586afd6d2
When the output patch size <= 32 we can be sure regardless of wave size that each wave will take this branch, therefore the jump can be removed. Fossil DB stats on Navi 21: Totals from 1385 (1.03% of 134906) affected shaders: CodeSize: 2664436 -> 2658896 (-0.21%) Instrs: 488618 -> 487233 (-0.28%) Latency: 2290157 -> 2289199 (-0.04%) InvThroughput: 898658 -> 898364 (-0.03%) Branches: 6554 -> 5169 (-21.13%) Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Reviewed-By: Georg Lehmann <dadschoorse@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17921>