From 9a13d066d74c4842a453297b9d2ad9b07348e623 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 22 Apr 2016 09:05:10 +0000 Subject: lto-streamer-in.c (input_ssa_names): Do not allocate GIMPLE_NOP for all SSA names. 2016-04-22 Richard Biener * 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 --- gcc/lto-streamer-out.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc/lto-streamer-out.c') diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c index 6703d41..35e58fd 100644 --- a/gcc/lto-streamer-out.c +++ b/gcc/lto-streamer-out.c @@ -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); -- cgit v1.1