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 c++/65851] ice in set_lattice_value at tree-ssa-cc p.c:535 Date: Tue, 28 Apr 2015 07:27:00 -0000 [thread overview] Message-ID: <bug-65851-4-fa7Ld7XIAN@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-65851-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65851 --- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Tue Apr 28 07:26:41 2015 New Revision: 222510 URL: https://gcc.gnu.org/viewcvs?rev=222510&root=gcc&view=rev Log: 2015-04-28 Richard Biener <rguenther@suse.de> PR tree-optimization/65851 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when changing CONSTANT to CONSTANT non-copy. Get new_val by reference. (ccp_lattice_meet): Remove stray argument. Use operand_equal_p rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST. (ccp_visit_phi_node): Adjust. (evaluate_stmt): For simplifications to SSA names return its lattice value if that isn't VARYING. Return immediately when simplified to a constant. (visit_assignment): Adjust. (ccp_visit_stmt): Likewise. * g++.dg/torture/pr65851.C: New testcase. Added: trunk/gcc/testsuite/g++.dg/torture/pr65851.C Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-ssa-ccp.c
next prev parent reply other threads:[~2015-04-28 7:27 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-04-22 21:10 [Bug c++/65851] New: " dcb314 at hotmail dot com 2015-04-23 9:11 ` [Bug c++/65851] " marxin at gcc dot gnu.org 2015-04-23 9:17 ` rguenth at gcc dot gnu.org 2015-04-23 9:31 ` rguenth at gcc dot gnu.org 2015-04-23 9:35 ` marxin at gcc dot gnu.org 2015-04-27 15:23 ` trippels at gcc dot gnu.org 2015-04-28 7:27 ` rguenth at gcc dot gnu.org [this message] 2015-04-28 7:31 ` 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-65851-4-fa7Ld7XIAN@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).