This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/81083] [7/8 Regression] ICE: Unable to coalesce ssa_names 4 and 13 which are marked as MUST COALESCE
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 13 Jun 2017 13:05:30 +0000
- Subject: [Bug tree-optimization/81083] [7/8 Regression] ICE: Unable to coalesce ssa_names 4 and 13 which are marked as MUST COALESCE
- Auto-submitted: auto-generated
- References: <bug-81083-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81083
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Patch I am testing:
Index: gcc/tree-ssa-sccvn.c
===================================================================
--- gcc/tree-ssa-sccvn.c (revision 249145)
+++ gcc/tree-ssa-sccvn.c (working copy)
@@ -2035,7 +2035,9 @@ vn_reference_lookup_3 (ao_ref *ref, tree
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);