public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/56150] [4.8 Regression] ICE segfault in do_pre / tail_merge_optimize Date: Wed, 30 Jan 2013 15:57:00 -0000 [thread overview] Message-ID: <bug-56150-4-Ob9GzdCzyF@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-56150-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56150 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2013-01-30 AssignedTo|unassigned at gcc dot |rguenth at gcc dot gnu.org |gnu.org | Target Milestone|--- |4.8.0 Summary|ICE segfault in do_pre / |[4.8 Regression] ICE |tail_merge_optimize |segfault in do_pre / | |tail_merge_optimize Ever Confirmed|0 |1 --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> 2013-01-30 15:56:27 UTC --- Confirmed. 1119 case GIMPLE_ASSIGN: 1120 lhs1 = gimple_get_lhs (s1); 1121 lhs2 = gimple_get_lhs (s2); 1122 if (gimple_vdef (s1)) 1123 { 1124 if (vn_valueize (gimple_vdef (s1)) != vn_valueize (gimple_vdef (s2))) s2 isn't a store. Index: gcc/tree-ssa-tail-merge.c =================================================================== --- gcc/tree-ssa-tail-merge.c (revision 195574) +++ gcc/tree-ssa-tail-merge.c (working copy) @@ -1121,6 +1121,8 @@ gimple_equal_p (same_succ same_succ, gim lhs2 = gimple_get_lhs (s2); if (gimple_vdef (s1)) { + if (!gimple_vdef (s2)) + return false; if (vn_valueize (gimple_vdef (s1)) != vn_valueize (gimple_vdef (s2))) return false; if (TREE_CODE (lhs1) != SSA_NAME fixes it.
next prev parent reply other threads:[~2013-01-30 15:57 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-01-30 14:44 [Bug tree-optimization/56150] New: " francesco.zappa.nardelli at gmail dot com 2013-01-30 14:45 ` [Bug tree-optimization/56150] " francesco.zappa.nardelli at gmail dot com 2013-01-30 15:57 ` rguenth at gcc dot gnu.org [this message] 2013-01-31 8:53 ` [Bug tree-optimization/56150] [4.8 Regression] " rguenth at gcc dot gnu.org 2013-01-31 8:54 ` rguenth at gcc dot gnu.org 2013-01-31 9:17 ` rguenth at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-56150-4-Ob9GzdCzyF@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).