nir: Add a find_variable_with_[driver_]location helper
[mesa.git] / src / intel / compiler / brw_dead_control_flow.cpp
index 114dc6cb21240da5f3982160d27f8a2c151ac9d0..0d9253bab18d5e91bf0a39c8b795b9ccd8ea3ec5 100644 (file)
@@ -29,6 +29,8 @@
 #include "brw_shader.h"
 #include "brw_cfg.h"
 
+using namespace brw;
+
 /* Look for and eliminate dead control flow:
  *
  *   - if/endif
@@ -113,7 +115,7 @@ dead_control_flow_eliminate(backend_shader *s)
    }
 
    if (progress)
-      s->invalidate_live_intervals();
+      s->invalidate_analysis(DEPENDENCY_BLOCKS | DEPENDENCY_INSTRUCTIONS);
 
    return progress;
 }