public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/21082] &a[b] - &a[c] is not folded to b - c Date: Mon, 18 Apr 2005 04:06:00 -0000 [thread overview] Message-ID: <20050418040648.4483.qmail@sourceware.org> (raw) In-Reply-To: <20050418030609.21082.pinskia@gcc.gnu.org> ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 04:06 ------- The code in comment #0 should produce no multiply/divides/shifts but does currently (again with the C++ front-end). Take the following code: typedef __SIZE_TYPE__ size_t; size_t a[100]; size_t f(size_t b, size_t c) { return (&a[b] - &a[c])*sizeof(*a); } We get the good code but only after combine so this blocks both the generic one and the RTL based missed fold optimizators and we can add the TREE keyword too for the above testcase. -- What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO| |19986 nThis| | Keywords| |TREE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21082
next prev parent reply other threads:[~2005-04-18 4:06 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-04-18 3:06 [Bug middle-end/21082] New: " pinskia at gcc dot gnu dot org 2005-04-18 3:06 ` [Bug middle-end/21082] " pinskia at gcc dot gnu dot org 2005-04-18 3:20 ` pinskia at gcc dot gnu dot org 2005-04-18 4:06 ` pinskia at gcc dot gnu dot org [this message] 2005-04-19 14:58 ` phython at gcc dot gnu dot org 2005-04-23 14:31 ` rguenth at gcc dot gnu dot org 2005-04-23 16:24 ` pinskia at gcc dot gnu dot org 2005-04-23 21:05 ` rguenth at gcc dot gnu dot org 2005-04-23 21:34 ` cvs-commit at gcc dot gnu dot org 2005-04-23 21:36 ` rguenth at gcc dot gnu dot org 2005-04-23 21:37 ` pinskia at gcc dot gnu dot 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=20050418040648.4483.qmail@sourceware.org \ --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).