freedreno/ir3/postsched: remove some leftovers
authorRob Clark <robdclark@chromium.org>
Wed, 18 Mar 2020 17:01:03 +0000 (10:01 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 13 Apr 2020 20:47:28 +0000 (20:47 +0000)
These aren't used in postsched.

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

src/freedreno/ir3/ir3_postsched.c

index 2049cca479e8882d07dbb8493a704c1038038baa..3dc4505c52da5fcb9add3ddcc106580f6f921ce9 100644 (file)
@@ -58,8 +58,6 @@ struct ir3_postsched_ctx {
        struct dag *dag;
 
        struct list_head unscheduled_list; /* unscheduled instructions */
-       struct ir3_instruction *scheduled; /* last scheduled instr */
-       struct ir3_instruction *pred;      /* current p0.x user, if any */
 
        bool error;
 
@@ -90,14 +88,9 @@ schedule(struct ir3_postsched_ctx *ctx, struct ir3_instruction *instr)
         */
        list_delinit(&instr->node);
 
-       if (writes_pred(instr)) {
-               ctx->pred = instr;
-       }
-
        di(instr, "schedule");
 
        list_addtail(&instr->node, &instr->block->instr_list);
-       ctx->scheduled = instr;
 
        if (is_sfu(instr)) {
                ctx->sfu_delay = 8;
@@ -557,8 +550,6 @@ static void
 sched_block(struct ir3_postsched_ctx *ctx, struct ir3_block *block)
 {
        ctx->block = block;
-       ctx->scheduled = NULL;
-       ctx->pred = NULL;
 
        /* move all instructions to the unscheduled list, and
         * empty the block's instruction list (to which we will