public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Philip Blundell <philb@gnu.org> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: optimization/3978: arm peephole for loading two consecutive memory locations generates suboptimal code (on arm7tdmi) Date: Thu, 09 Aug 2001 14:16:00 -0000 [thread overview] Message-ID: <20010809211602.10052.qmail@sourceware.cygnus.com> (raw) The following reply was made to PR optimization/3978; it has been noted by GNATS. From: Philip Blundell <philb@gnu.org> To: segher@chello.nl Cc: gcc-gnats@gcc.gnu.org Subject: Re: optimization/3978: arm peephole for loading two consecutive memory locations generates suboptimal code (on arm7tdmi) Date: Thu, 09 Aug 2001 22:12:51 +0100 --==_Exmh_1440650826P Content-Type: text/plain; charset=us-ascii >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 Use -mtune=arm8 or some such. I don't think this will do any harm on ARM7TDMI and it should yield the results you are looking for. p. --==_Exmh_1440650826P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (GNU/Linux) Comment: Exmh version 2.1.1 10/15/1999 (debian) iD8DBQE7cvzTVTLPJe9CT30RAkM1AJ0ZhpF2M8JCTi2LWuXcxRJ9D2HKmQCghihx QyTShLjRcSJfxMRbeM42hwU= =gy55 -----END PGP SIGNATURE----- --==_Exmh_1440650826P--
next reply other threads:[~2001-08-09 14:16 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-08-09 14:16 Philip Blundell [this message] -- strict thread matches above, loose matches on Subject: below -- 2001-08-10 3:26 rearnsha 2001-08-09 12:56 segher
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=20010809211602.10052.qmail@sourceware.cygnus.com \ --to=philb@gnu.org \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@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).