From e93c66bc4509a69092e422047c83fd1ffe9dcbb0 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 15 Jan 2016 08:16:08 +0000 Subject: re PR tree-optimization/69117 (wrong code at -O1 -fstrict-aliasing) 2016-01-15 Richard Biener PR tree-optimization/69117 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member. * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info of the leader conservatively. (free_scc_vn): Restore original SSA name infos. * gcc.dg/torture/pr69117.c: New testcase. From-SVN: r232401 --- gcc/tree-ssa-sccvn.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/tree-ssa-sccvn.h') diff --git a/gcc/tree-ssa-sccvn.h b/gcc/tree-ssa-sccvn.h index 04339ac..d94bc1c 100644 --- a/gcc/tree-ssa-sccvn.h +++ b/gcc/tree-ssa-sccvn.h @@ -169,6 +169,9 @@ typedef struct vn_ssa_aux /* Statements to insert if needs_insertion is true. */ gimple_seq expr; + /* Saved SSA name info. */ + tree_ssa_name::ssa_name_info_type info; + /* Unique identifier that all expressions with the same value have. */ unsigned int value_id; -- cgit v1.1