i965/vec4: Call calculate_cfg() in test programs to avoid crashing.

Reported-by: Mark Janes <mark.a.janes@intel.com>
This commit is contained in:
Matt Turner
2014-09-24 16:05:50 -07:00
parent 52476b35c1
commit ba0c0a186d
2 changed files with 2 additions and 0 deletions
@@ -116,6 +116,7 @@ copy_propagation(vec4_visitor *v)
v->dump_instructions();
}
v->calculate_cfg();
v->opt_copy_propagation();
if (print) {
@@ -119,6 +119,7 @@ _register_coalesce(vec4_visitor *v, const char *func)
v->dump_instructions();
}
v->calculate_cfg();
v->opt_register_coalesce();
if (print) {