Item 10 from the old PROBLEMS file (no test case available):

----------------------------------------
        movl a3@,a0
        movl a3@(16),a1
        clrb a0@(a1:l)

is generated and may be worse than

        movl a3@,a0
        addl a3@(16),a0
        clrb a0@

If ordering of operands is improved, many more such cases will be
generated from typical array accesses.
----------------------------------------

-- 
           Summary: [m68k] Inefficient code for array accesses  (from old
                    PROBLEMS)
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: steven at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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

Reply via email to