Don't process phi out too in build_ssa for setting def.
@@ -1678,7 +1678,6 @@ static void build_ssa (gen_ctx_t gen_ctx) {
add_op_edge (gen_ctx, def, def_op_num, bb_insn, op_num);
}
insns_num++;
- }
FOREACH_INSN_VAR (gen_ctx, iter, bb_insn->insn, var, op_num, out_p, mem_p, passed_mem_num) {
if (!out_p) continue;
el.bb = bb;
@@ -1688,6 +1687,7 @@ static void build_ssa (gen_ctx_t gen_ctx) {
HTAB_DO (def_tab_el_t, def_tab, el, HTAB_REPLACE, el);
}
}
+ }
bitmap_set_bit_p (bb_processed, bb->index);
for (e = DLIST_HEAD (out_edge_t, bb->out_edges); e != NULL; e = DLIST_NEXT (out_edge_t, e))
if (is_being_sealed_p (gen_ctx, e->dst)) seal_bb (gen_ctx, e->dst);
