freedreno/ir3: immediately schedule meta instructions
authorRob Clark <robdclark@chromium.org>
Tue, 28 May 2019 16:42:26 +0000 (09:42 -0700)
committerRob Clark <robdclark@chromium.org>
Mon, 3 Jun 2019 19:44:03 +0000 (12:44 -0700)
The aren't real instructions, and don't change # of live values, so no
point in them competing with real instructions.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/freedreno/ir3/ir3_sched.c

index 1b07bf8c1dd16ee5c059c3af0aed21cf0ce1ecf9..f027d7b7a304a9eb745cd644717c217a397a3132 100644 (file)
@@ -571,6 +571,9 @@ find_eligible_instr(struct ir3_sched_ctx *ctx, struct ir3_sched_notes *notes,
                if (!candidate)
                        continue;
 
+               if (is_meta(candidate))
+                       return candidate;
+
                deepest = MAX2(deepest, candidate->depth);
        }