public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: segher@chello.nl To: gcc-gnats@gcc.gnu.org Subject: optimization/3977: arm peephole for loading two consecutive memory locations generates suboptimal code (on arm7tdmi) Date: Thu, 09 Aug 2001 12:46:00 -0000 [thread overview] Message-ID: <20010809193726.1226.qmail@sourceware.cygnus.com> (raw) >Number: 3977 >Category: optimization >Synopsis: arm peephole for loading two consecutive memory locations generates suboptimal code (on arm7tdmi) >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: pessimizes-code >Submitter-Id: net >Arrival-Date: Thu Aug 09 12:46:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: segher@chello.nl >Release: 3.0 >Organization: >Environment: >Description: I often see generated code like add temp, pointer, #offset ldmia temp, {regA, regB} (after which temp is dead) which is slower than just ldr regA, [pointer, #offset] ldr regB, [pointer, #offset+4] and wastes a register as well >How-To-Repeat: a lot of code will do this >Fix: change the peephole, i think >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2001-08-09 12:46 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-08-09 12:46 segher [this message] 2001-08-10 3:20 rearnsha
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=20010809193726.1226.qmail@sourceware.cygnus.com \ --to=segher@chello.nl \ --cc=gcc-gnats@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).