i965/sched: don't calculate live intervals for post-RA scheduling
authorConnor Abbott <cwabbott0@gmail.com>
Fri, 30 Oct 2015 22:19:34 +0000 (18:19 -0400)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 31 Oct 2015 15:05:52 +0000 (08:05 -0700)
For some reason, this causes assertions on gm965 only. In any case, it's
unnecessary since we don't need liveness information in the post-RA
scheduler.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92744
Cc: Mark Janes <mark.a.janes@intel.com>
Signed-off-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp

index 2698399..88c45f7 100644 (file)
@@ -1702,7 +1702,8 @@ instruction_scheduler::run(cfg_t *cfg)
 void
 fs_visitor::schedule_instructions(instruction_scheduler_mode mode)
 {
-   calculate_live_intervals();
+   if (mode != SCHEDULE_POST)
+      calculate_live_intervals();
 
    int grf_count;
    if (mode == SCHEDULE_POST)