pan/midgard: Squeeze indices before scheduling
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 27 Sep 2019 12:20:17 +0000 (08:20 -0400)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 30 Sep 2019 12:40:13 +0000 (08:40 -0400)
This allows node_count to be correct while scheduling.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/midgard_schedule.c

index b8d9b5ec9be1538cf919e4f1e191c79bae38dc4d..2ed25da2e0db44654ebd6a29cd76f4ae21904e6d 100644 (file)
@@ -983,6 +983,7 @@ schedule_program(compiler_context *ctx)
         /* Must be lowered right before RA */
         mir_squeeze_index(ctx);
         mir_lower_special_reads(ctx);
+        mir_squeeze_index(ctx);
 
         /* Lowering can introduce some dead moves */