Revert "i965/fs: Give up in interference check if we see a WHILE."
authorMatt Turner <mattst88@gmail.com>
Mon, 26 May 2014 18:44:53 +0000 (11:44 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 26 May 2014 18:47:04 +0000 (11:47 -0700)
This reverts commit 55de1c035cbca2b7087b3aa21a8c3dfc900a4ad9.

Cc: "10.2" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp

index b2ab386ab6631e5285d762b7d19bd35e092f3718..020d992b15a537a4edc74e7e6ce708763d05e4a0 100644 (file)
@@ -102,7 +102,7 @@ can_coalesce_vars(brw::fs_live_variables *live_intervals,
    for (scan_inst = (fs_inst *)inst->next;
         !scan_inst->is_tail_sentinel() && ip <= live_intervals->end[var_to];
         scan_inst = (fs_inst *)scan_inst->next, ip++) {
-      if (scan_inst->opcode == BRW_OPCODE_WHILE)
+      if (scan_inst->is_control_flow())
          return false;
 
       if (scan_inst->dst.equals(inst->dst) ||