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 target/25287] New: PPC has conditional indirect jumps if ra allocates the a in ctr before the jumps Date: Tue, 06 Dec 2005 21:07:00 -0000 [thread overview] Message-ID: <bug-25287-6528@http.gcc.gnu.org/bugzilla/> (raw) Code: int f(void *a, int b) { if (b ==1) goto *a; g(); if (b ==2) goto *a; g(); return 1 } This is very minor but I thought it would be cool if GCC could do something like: .f: mflr %r0 cmpwi %cr7,%r4,1 std %r30,-16(%r1) std %r31,-8(%r1) mr %r30,%r3 mr %r31,%r4 std %r0,16(%r1) stdu %r1,-128(%r1) mtctr %r30 beqctr %cr7,.L3 bl .g nop cmpwi %cr7,%r31,2 mtctr %r30 beqctr %cr7,.L3 bl .g li %r3 blr .L3: mtctr %r30 bctr -- Summary: PPC has conditional indirect jumps if ra allocates the a in ctr before the jumps Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhancement Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org GCC target triplet: powerpc64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25287
next reply other threads:[~2005-12-06 21:07 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-12-06 21:07 pinskia at gcc dot gnu dot org [this message] 2005-12-06 21:09 ` [Bug target/25287] " pinskia at gcc dot gnu dot org 2005-12-23 5:53 ` 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=bug-25287-6528@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).