ir3/sched: Speed up live_effect
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 1 Jun 2021 16:18:14 +0000 (18:18 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 28 Jun 2021 16:26:24 +0000 (16:26 +0000)
commit9133999430e67b7bae6788d0a8c03d9dc1074bdc
tree94da9a661987b809892fb5ca3c07f64f2d7910b5
parent56dc84b95cd80332c7e9377c2ad39ff41813d1ac
ir3/sched: Speed up live_effect

If we've identified another use that isn't scheduled yet, we can break
right away rather than iterating through all the other uses. While this
could be optimized further, this simple change makes
dEQP-VK.subgroups.ballot_broadcast.compute.subgroupbroadcast_ivec4 go
from 40 seconds to 1.9 seconds on a release build according to my
unscientific testing.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11613>
src/freedreno/ir3/ir3_sched.c