public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "steven at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/50346] Function call foils VRP/jump-threading of redundant predicate on struct member Date: Sat, 10 Sep 2011 13:53:00 -0000 [thread overview] Message-ID: <bug-50346-4-eUAEKHv8r6@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-50346-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50346 Steven Bosscher <steven at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |alias Status|UNCONFIRMED |NEW Last reconfirmed| |2011-09-10 CC| |rguenth at gcc dot gnu.org, | |steven at gcc dot gnu.org Ever Confirmed|0 |1 --- Comment #1 from Steven Bosscher <steven at gcc dot gnu.org> 2011-09-10 13:35:50 UTC --- Confirmed. Here is the .143t.optimized dump for trunk r178747: void test() () { struct foo f; bool D.2119; bool retval.0; <bb 2>: # .MEM_13 = VDEF <.MEM_8(D)> f.b = 0; # .MEM_10 = VDEF <.MEM_13> retval.0_2 = bar (); if (retval.0_2 != 0) goto <bb 3>; else goto <bb 4>; <bb 3>: # .MEM_11 = VDEF <.MEM_10> f.b = 1; goto <bb 5>; <bb 4>: # VUSE <.MEM_10> D.2119_5 = f.b; if (D.2119_5 != 0) goto <bb 5>; else goto <bb 6>; <bb 5>: Invalid sum of incoming frequencies 5000, should be 3898 # .MEM_16 = PHI <.MEM_10(4), .MEM_11(3)> # .MEM_12 = VDEF <.MEM_16> foo::baz (&f); <bb 6>: Invalid sum of incoming frequencies 8898, should be 10000 # .MEM_7 = PHI <.MEM_10(4), .MEM_12(5)> # VUSE <.MEM_7> return; } Note how the call to bar() clobbers .MEM_13 which is f.b. Alias related => Richi in CC.
next prev parent reply other threads:[~2011-09-10 13:36 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-09-10 8:23 [Bug c++/50346] New: " scovich at gmail dot com 2011-09-10 13:53 ` steven at gcc dot gnu.org [this message] 2011-10-11 23:51 ` [Bug c++/50346] " paolo.carlini at oracle dot com 2011-10-12 10:10 ` [Bug tree-optimization/50346] " rguenth at gcc dot gnu.org 2011-10-12 12:41 ` scovich at gmail dot com 2011-10-12 12:44 ` rguenther at suse dot de 2012-03-07 13:31 ` scovich at gmail dot com 2012-03-07 13:40 ` rguenther at suse dot de 2012-03-07 14:29 ` scovich at gmail dot com 2012-03-12 8:57 ` rguenther at suse dot de 2021-08-11 4:31 ` pinskia 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-50346-4-eUAEKHv8r6@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).