execfreq calculation fails in case of unreachable code
authorMatthias Braun <matthias.braun@kit.edu>
Thu, 23 Aug 2012 09:02:12 +0000 (11:02 +0200)
committerMatthias Braun <matthias.braun@kit.edu>
Thu, 23 Aug 2012 11:33:13 +0000 (13:33 +0200)
ir/ana/execfreq.c

index 35c5c65..e07e51b 100644 (file)
@@ -240,7 +240,8 @@ void ir_estimate_execfreq(ir_graph *irg)
 
        assure_irg_properties(irg,
                IR_GRAPH_PROPERTY_CONSISTENT_OUT_EDGES
-               | IR_GRAPH_PROPERTY_CONSISTENT_LOOPINFO);
+               | IR_GRAPH_PROPERTY_CONSISTENT_LOOPINFO
+               | IR_GRAPH_PROPERTY_NO_UNREACHABLE_CODE);
 
        /* compute a DFS.
         * using a toposort on the CFG (without back edges) will propagate