i965/sched: Schedule trivial blocks.
authorMatt Turner <mattst88@gmail.com>
Mon, 28 Nov 2016 21:34:55 +0000 (13:34 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 29 Nov 2016 19:53:36 +0000 (11:53 -0800)
In commit 45cd76e342d1e8e schedule_instructions(bblock_t *) began
setting bblock_t::cycle_count, but that function was not called on
trivial blocks.

Remove the code to skip trivial blocks so that cycle_count is set.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp

index 9d7ba3be7196b11695a434e59b89d341ef38d35e..b3f7e877c80ae79627e76a889d8aebd118256ec0 100644 (file)
@@ -1694,9 +1694,6 @@ instruction_scheduler::run(cfg_t *cfg)
       setup_liveness(cfg);
 
    foreach_block(block, cfg) {
-      if (block->end_ip - block->start_ip <= 1)
-         continue;
-
       if (reads_remaining) {
          memset(reads_remaining, 0,
                 grf_count * sizeof(*reads_remaining));