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 target/67462] [6 Regression] FAIL: gcc.dg/ifcvt-3.c scan-rtl-dump ce1 "3 true changes made" Date: Mon, 14 Sep 2015 11:00:00 -0000 [thread overview] Message-ID: <bug-67462-4-zK7hbZVO3q@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-67462-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67462 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |6.0 --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- The tree level should indeed do a better job here but it gets "confused" by narrowing the return expressions to int before it gets a chance to do that optimization. It's s64 d = a - b; if (d == 0) return (unsigned)a + (unsigned)c; else return (unsigned)b + (unsigned)d + (unsigned)c; to them and 'd' is not handled the same way because the shortening happens in the frontend. You might want to file a separate PR about this missed optimization.
prev parent reply other threads:[~2015-09-14 11:00 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-09-05 12:52 [Bug rtl-optimization/67462] New: " hjl.tools at gmail dot com 2015-09-08 8:46 ` [Bug rtl-optimization/67462] " ktkachov at gcc dot gnu.org 2015-09-08 9:05 ` [Bug target/67462] " ktkachov at gcc dot gnu.org 2015-09-14 11:00 ` rguenth at gcc dot gnu.org [this message]
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-67462-4-zK7hbZVO3q@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).