This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Performance problem: unaligned loads/stores on structure assignments on MIPS
- From: Ian Lance Taylor <iant at google dot com>
- To: Simon Kagstrom <simon dot kagstrom at bth dot se>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 26 Feb 2007 22:05:57 -0800
- Subject: Re: Performance problem: unaligned loads/stores on structure assignments on MIPS
- References: <20070225192136.1189e498@lska>
Simon Kagstrom <simon.kagstrom@bth.se> writes:
> GCC 4.1 seems to sometimes generate inefficient code when doing
> structure assignments directly when compiling for MIPS1. When assigning
> to structure members manually, it generates regular lw/sw sequences.
> When assigning to the structure, you instead get lwl/lwr and swl/swr
> pairs (for no reason, since the data is aligned).
...
> Should I consider this a bug and report it to the bug tracking system?
> I looked for similar problems, but couldn't find any matching bug report.
This seems like a bug to me.
Ian