i965/vec4: Add invalidate_live_intervals method.
authorMatt Turner <mattst88@gmail.com>
Mon, 11 Nov 2013 18:33:46 +0000 (10:33 -0800)
committerMatt Turner <mattst88@gmail.com>
Wed, 20 Nov 2013 23:04:53 +0000 (15:04 -0800)
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
src/mesa/drivers/dri/i965/brw_vec4.cpp
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
src/mesa/drivers/dri/i965/brw_vec4_live_variables.cpp
src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp

index a4fae0d11f195c4d9adcb1416e3a6836797dfcfa..1050d674d8c99b03ffabe6f253e780a7d08b2249 100644 (file)
@@ -1446,5 +1446,5 @@ vec4_visitor::opt_schedule_instructions()
       printf("vec4 estimated execution time: %d cycles\n", sched.time);
    }
 
-   this->live_intervals_valid = false;
+   invalidate_live_intervals();
 }
index 20fbd4578d6b3a4d087721e5c978b1455b33b44c..e7cfab2e368da7f2c1f3552327fd9aa9dfdc9037 100644 (file)
@@ -343,7 +343,7 @@ vec4_visitor::dead_code_eliminate()
    }
 
    if (progress)
-      live_intervals_valid = false;
+      invalidate_live_intervals();
 
    return progress;
 }
@@ -554,7 +554,7 @@ vec4_visitor::opt_algebraic()
    }
 
    if (progress)
-      this->live_intervals_valid = false;
+      invalidate_live_intervals();
 
    return progress;
 }
@@ -1017,7 +1017,7 @@ vec4_visitor::opt_register_coalesce()
    }
 
    if (progress)
-      live_intervals_valid = false;
+      invalidate_live_intervals();
 
    return progress;
 }
@@ -1100,7 +1100,7 @@ vec4_visitor::split_virtual_grfs()
          }
       }
    }
-   this->live_intervals_valid = false;
+   invalidate_live_intervals();
 }
 
 void
index 1f29e576caf7709ef0ba329f30d8d823e0057853..5cec9f930e383b5c445364eaa85275c5b43e1104 100644 (file)
@@ -352,6 +352,7 @@ public:
    void split_uniform_registers();
    void pack_uniform_registers();
    void calculate_live_intervals();
+   void invalidate_live_intervals();
    void split_virtual_grfs();
    bool dead_code_eliminate();
    bool virtual_grf_interferes(int a, int b);
index d009a08e8bd9fe37e68b077d1edb82d2187822fd..033c6421f1f3b2e2d2ea7739f61c4380fb79e193 100644 (file)
@@ -362,7 +362,7 @@ vec4_visitor::opt_copy_propagation()
    }
 
    if (progress)
-      live_intervals_valid = false;
+      invalidate_live_intervals();
 
    return progress;
 }
index 3adda09092ddb146a81630bec237d99ac947b0e3..5bc2f9f3896177fe55b83468e82543015c08e93c 100644 (file)
@@ -266,6 +266,12 @@ vec4_visitor::calculate_live_intervals()
    this->live_intervals_valid = true;
 }
 
+void
+vec4_visitor::invalidate_live_intervals()
+{
+   live_intervals_valid = false;
+}
+
 bool
 vec4_visitor::virtual_grf_interferes(int a, int b)
 {
index 387e3c461ecc41eae25bfb2aa2d389a8165401bc..95c8d9f705a1cea466b75ae96e869c444fc9bd47 100644 (file)
@@ -359,7 +359,7 @@ vec4_visitor::spill_reg(int spill_reg_nr)
       }
    }
 
-   this->live_intervals_valid = false;
+   invalidate_live_intervals();
 }
 
 } /* namespace brw */