Commit 44f66f63 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Increase the visited flag before using it.

This ensures that only kept blocks get the extra weight for the keep edge.
parent 10d317fb
......@@ -301,6 +301,7 @@ void ir_estimate_execfreq(ir_graph *irg)
* do not reach the End block) */
/* mark all kept blocks as (node)visited */
const ir_node *end = get_irg_end(irg);
int const n_keepalives = get_End_n_keepalives(end);
for (int k = n_keepalives - 1; k >= 0; --k) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment