pan/bi: Don't open code bi_foreach_dest
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 5 Jan 2021 15:29:01 +0000 (10:29 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 29 Jan 2021 16:55:43 +0000 (16:55 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8723>

src/panfrost/bifrost/bi_ra.c

index 572c390..8db5b05 100644 (file)
@@ -44,7 +44,7 @@ bi_compute_interference(bi_context *ctx, struct lcra_state *l)
                         /* Mark all registers live after the instruction as
                          * interfering with the destination */
 
-                        for (unsigned d = 0; d < ARRAY_SIZE(ins->dest); ++d) {
+                        bi_foreach_dest(ins, d) {
                                 if (bi_get_node(ins->dest[d]) >= node_count)
                                         continue;