public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/55124] [4.8 Regression] ICE in find_or_generate_expression, at tree-ssa-pre.c:2803 Date: Tue, 30 Oct 2012 15:50:00 -0000 [thread overview] Message-ID: <bug-55124-4-7jBDLUB6Qr@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-55124-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55124 vries at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu.org --- Comment #5 from vries at gcc dot gnu.org 2012-10-30 15:49:42 UTC --- tentative patch: ... Index: gcc/tree-ssa-pre.c =================================================================== --- gcc/tree-ssa-pre.c (revision 192023) +++ gcc/tree-ssa-pre.c (working copy) @@ -1657,6 +1657,16 @@ phi_translate_1 (pre_expr expr, bitmap_set_t set1, if (result) VEC_free (vn_reference_op_s, heap, newoperands); + if (result && TREE_CODE (result) == SSA_NAME) + { + gimple def_stmt = SSA_NAME_DEF_STMT (result); + basic_block def_bb = gimple_bb (def_stmt); + if (def_bb != pred + && !dominated_by_p (CDI_DOMINATORS, pred, + def_bb)) + return NULL; + } + /* We can always insert constants, so if we have a partial redundant constant load of another type try to translate it to a constant of appropriate type. */ ...
next prev parent reply other threads:[~2012-10-30 15:50 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-10-29 18:16 [Bug tree-optimization/55124] New: " antoine.balestrat at gmail dot com 2012-10-29 18:20 ` [Bug tree-optimization/55124] " rguenth at gcc dot gnu.org 2012-10-29 19:44 ` mpolacek at gcc dot gnu.org 2012-10-30 10:18 ` [Bug tree-optimization/55124] [4.8 Regression] " rguenth at gcc dot gnu.org 2012-10-30 10:19 ` rguenth at gcc dot gnu.org 2012-10-30 15:31 ` vries at gcc dot gnu.org 2012-10-30 15:50 ` vries at gcc dot gnu.org [this message] 2012-10-30 17:13 ` rguenther at suse dot de 2012-11-29 14:35 ` rguenth at gcc dot gnu.org 2012-11-30 12:33 ` rguenth at gcc dot gnu.org 2012-12-03 14:43 ` rguenth at gcc dot gnu.org 2012-12-04 9:20 ` rguenth at gcc dot gnu.org 2012-12-04 9:27 ` 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-55124-4-7jBDLUB6Qr@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).