public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "davidxl at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/40956] GCSE opportunity in if statement Date: Wed, 23 Dec 2009 19:37:00 -0000 [thread overview] Message-ID: <20091223193712.10790.qmail@sourceware.org> (raw) In-Reply-To: <bug-40956-17659@http.gcc.gnu.org/bugzilla/> ------- Comment #3 from davidxl at gcc dot gnu dot org 2009-12-23 19:37 ------- This bug is ARM specific (thumb) mode. In x86, the hoisting is unnecessary as the move instruction support the imm form. The issue here is more in the GIMPLE canonicalization (target specific). In this case, the IR should be in the following form to expose the hoisting. if (...) { temp = 0; *p = temp; } else { temp = 0; *(p+1) = temp; } -- davidxl at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|DUPLICATE | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40956
next prev parent reply other threads:[~2009-12-23 19:37 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-08-03 22:55 [Bug target/40956] New: " carrot at google dot com 2009-08-03 22:55 ` [Bug target/40956] " carrot at google dot com 2009-08-04 9:06 ` steven at gcc dot gnu dot org 2009-12-23 19:37 ` davidxl at gcc dot gnu dot org [this message] 2010-03-19 18:39 ` [Bug rtl-optimization/40956] Constants are never candidates for hoisting steven at gcc dot gnu dot org 2010-06-19 19:57 ` mkuvyrkov at gcc dot gnu dot org 2010-07-27 19:35 ` mkuvyrkov at gcc dot gnu dot org 2010-07-27 19:46 ` mkuvyrkov at gcc dot gnu dot org 2010-07-27 21:07 ` mkuvyrkov at gcc dot gnu dot org 2010-07-27 21:11 ` mkuvyrkov 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=20091223193712.10790.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).