Commit 9711085f authored by Michael Beck's avatar Michael Beck
Browse files

- optimize Tuple nodes away before calling scalar replacement

[r19163]
parent 47b007ed
......@@ -1995,9 +1995,14 @@ void inline_functions(int inline_threshold) {
set_irg_doms_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
if (env->local_vars)
scalar_replacement_opt(irg);
/* scalar replacement does not work well with Tuple nodes, so optimize them away */
optimize_graph_df(irg);
if (env->local_vars) {
if (scalar_replacement_opt(irg))
optimize_graph_df(irg);
}
optimize_cf(irg);
}
if (env->got_inline || (env->n_callers_orig != env->n_callers)) {
......
Markdown is supported
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