public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/56590] New: Replace auto-inc-dec pass with generic address mode selection pass
@ 2013-03-10 17:05 olegendo at gcc dot gnu.org
  2015-02-03  2:23 ` [Bug rtl-optimization/56590] " amker at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: olegendo at gcc dot gnu.org @ 2013-03-10 17:05 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56590

             Bug #: 56590
           Summary: Replace auto-inc-dec pass with generic address mode
                    selection pass
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: olegendo@gcc.gnu.org
            Target: sh*-*-*


At least on SH there are several address mode selection issues which I'd like
to group in this PR.

PR 54065
[SH] Prefer @(R0,Rn) addressing for floating-point load/store

PR 53911
[SH] Improve displacement addressing

PR 50749
Auto-inc-dec does not find subsequent contiguous mem accesses

PR 39423
[4.6/4.7/4.8 Regression] [SH] performance regression: lost mov @(disp,Rn)

PR 52049
SH Target: Inefficient constant address access

Based on my observations so far, I think the right thing to do is to replace
the current auto-inc-dec pass with a pass that optimizes address mode selection
in a more generic way, instead of just trying to find auto inc/dec
opportunities.

The basic idea is to look at all memory accesses in a function (or basic block
as a start) that share a base address and then try to select the cheapest
addressing modes for each memory access.  The current address cost target hook
can be used to determine the costs of a memory access with a particular
address.

I have already started working on such a replacement pass a while ago and would
like to first do a trial with the SH target.  Other targets might then also
pick it up if it seems beneficial to do so.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-07-22  3:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-10 17:05 [Bug rtl-optimization/56590] New: Replace auto-inc-dec pass with generic address mode selection pass olegendo at gcc dot gnu.org
2015-02-03  2:23 ` [Bug rtl-optimization/56590] " amker at gcc dot gnu.org
2015-02-03 10:59 ` olegendo at gcc dot gnu.org
2015-05-22 13:57 ` olegendo at gcc dot gnu.org
2015-10-03 15:31 ` olegendo at gcc dot gnu.org
2023-07-22  3:07 ` pinskia at gcc dot gnu.org

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).