i965/vec4: Call calculate_cfg() in test programs to avoid crashing.
authorMatt Turner <mattst88@gmail.com>
Wed, 24 Sep 2014 23:05:50 +0000 (16:05 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 24 Sep 2014 23:06:41 +0000 (16:06 -0700)
Reported-by: Mark Janes <mark.a.janes@intel.com>
src/mesa/drivers/dri/i965/test_vec4_copy_propagation.cpp
src/mesa/drivers/dri/i965/test_vec4_register_coalesce.cpp

index 6925af5..992cb60 100644 (file)
@@ -116,6 +116,7 @@ copy_propagation(vec4_visitor *v)
       v->dump_instructions();
    }
 
+   v->calculate_cfg();
    v->opt_copy_propagation();
 
    if (print) {
index 16e6270..3c03f83 100644 (file)
@@ -119,6 +119,7 @@ _register_coalesce(vec4_visitor *v, const char *func)
       v->dump_instructions();
    }
 
+   v->calculate_cfg();
    v->opt_register_coalesce();
 
    if (print) {