Revert "i965/fs: Only sweep NOPs if register coalescing made progress."
authorMatt Turner <mattst88@gmail.com>
Wed, 16 Apr 2014 00:27:55 +0000 (17:27 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 16 Apr 2014 00:27:55 +0000 (17:27 -0700)
This reverts commit f092e8951ce5212ba3cbb382ce3a6666eb6c9bed.

Didn't mean to push this...

src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp

index d5dd2c2954e911dcfb4ce6f3fd1b0fa57cf686d2..4e3b611197ad823ff2f8c2c50f13f3f96458fb3a 100644 (file)
@@ -215,18 +215,17 @@ fs_visitor::register_coalesce()
       reg_from = -1;
    }
 
-   if (progress) {
-      foreach_list_safe(node, &this->instructions) {
-         fs_inst *inst = (fs_inst *)node;
+   foreach_list_safe(node, &this->instructions) {
+      fs_inst *inst = (fs_inst *)node;
 
-         if (inst->opcode == BRW_OPCODE_NOP) {
-            inst->remove();
-            progress = true;
-         }
+      if (inst->opcode == BRW_OPCODE_NOP) {
+         inst->remove();
+         progress = true;
       }
+   }
 
+   if (progress)
       invalidate_live_intervals();
-   }
 
    return progress;
 }