freedreno/ir3/ra: drop extending output live-ranges
authorRob Clark <robdclark@chromium.org>
Sat, 21 Mar 2020 20:29:37 +0000 (13:29 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 27 Mar 2020 22:41:36 +0000 (22:41 +0000)
This is no longer needed as we create meta:collect instructions in the
end block, which achieves the same result.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4272>

src/freedreno/ir3/ir3_ra.c

index ccba90be55294fd0a6a8736bdf68e4b7de11d826..d4663f6167d28a7a5104ebac364a900392b3d97e 100644 (file)
@@ -892,13 +892,6 @@ ra_add_interference(struct ir3_ra_ctx *ctx)
                }
        }
 
-       /* need to fix things up to keep outputs live: */
-       struct ir3_instruction *out;
-       foreach_output (out, ir) {
-               unsigned name = ra_name(ctx, &ctx->instrd[out->ip]);
-               ctx->use[name] = ctx->instr_cnt;
-       }
-
        for (unsigned i = 0; i < ctx->alloc_count; i++) {
                for (unsigned j = 0; j < ctx->alloc_count; j++) {
                        if (intersects(ctx->def[i], ctx->use[i],