2017-06-14 Richard Biener <rguenther@suse.de>
PR tree-optimization/81083
* tree-ssa-sccvn.c (vn_reference_lookup_3): Do not use abnormals
as values.
* gcc.dg/torture/pr81083.c: New testcase.
From-SVN: r249182
+2017-06-14 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/81083
+ * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not use abnormals
+ as values.
+
2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/rs6000.c: Update all comments that mentioned SPE.
+2017-06-14 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/81083
+ * gcc.dg/torture/pr81083.c: New testcase.
+
2017-06-14 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/tree-ssa/vrp101.c: Fix scan-tree-dump regex.
--- /dev/null
+/* { dg-do compile } */
+
+void a(int arg)
+{
+ extern struct { int x; } obj;
+ setjmp();
+ obj.x = arg;
+ arg = arg;
+ if (obj.x)
+ func();
+ if (obj.x)
+ func();
+}
ops[1] = bitsize_int (ref->size);
ops[2] = bitsize_int (offset - offset2);
tree val = vn_nary_build_or_lookup (rcode, vr->type, ops);
- if (val)
+ if (val
+ && (TREE_CODE (val) != SSA_NAME
+ || ! SSA_NAME_OCCURS_IN_ABNORMAL_PHI (val)))
{
vn_reference_t res = vn_reference_lookup_or_insert_for_pieces
(vuse, vr->set, vr->type, vr->operands, val);