Commit 9a13d066 by Richard Biener Committed by Richard Biener

lto-streamer-in.c (input_ssa_names): Do not allocate GIMPLE_NOP for all SSA names.

2016-04-22  Richard Biener  <rguenther@suse.de>

	* lto-streamer-in.c (input_ssa_names): Do not allocate
	GIMPLE_NOP for all SSA names.
	* lto-streamer-out.c (output_ssa_names): Do not output
	SSA names that should have been released.

From-SVN: r235360
parent d1431192
2016-04-22 Richard Biener <rguenther@suse.de>
* lto-streamer-in.c (input_ssa_names): Do not allocate
GIMPLE_NOP for all SSA names.
* lto-streamer-out.c (output_ssa_names): Do not output
SSA names that should have been released.
2016-04-22 Richard Biener <rguenther@suse.de>
PR tree-optimization/70740
* tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
VDEF.
......
......@@ -881,10 +881,13 @@ input_ssa_names (struct lto_input_block *ib, struct data_in *data_in,
is_default_def = (streamer_read_uchar (ib) != 0);
name = stream_read_tree (ib, data_in);
ssa_name = make_ssa_name_fn (fn, name, gimple_build_nop ());
ssa_name = make_ssa_name_fn (fn, name, NULL);
if (is_default_def)
set_ssa_default_def (cfun, SSA_NAME_VAR (ssa_name), ssa_name);
{
set_ssa_default_def (cfun, SSA_NAME_VAR (ssa_name), ssa_name);
SSA_NAME_DEF_STMT (ssa_name) = gimple_build_nop ();
}
i = streamer_read_uhwi (ib);
}
......
......@@ -1816,7 +1816,11 @@ output_ssa_names (struct output_block *ob, struct function *fn)
if (ptr == NULL_TREE
|| SSA_NAME_IN_FREE_LIST (ptr)
|| virtual_operand_p (ptr))
|| virtual_operand_p (ptr)
/* Simply skip unreleased SSA names. */
|| (! SSA_NAME_IS_DEFAULT_DEF (ptr)
&& (! SSA_NAME_DEF_STMT (ptr)
|| ! gimple_bb (SSA_NAME_DEF_STMT (ptr)))))
continue;
streamer_write_uhwi (ob, i);
......
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