From: Matthias Braun Date: Thu, 23 Aug 2012 09:02:12 +0000 (+0200) Subject: execfreq calculation fails in case of unreachable code X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=5f489a6cbb73897e6225f310df4786a1d8d64562;p=libfirm execfreq calculation fails in case of unreachable code --- diff --git a/ir/ana/execfreq.c b/ir/ana/execfreq.c index 35c5c65cf..e07e51b65 100644 --- a/ir/ana/execfreq.c +++ b/ir/ana/execfreq.c @@ -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