Performance problem: unaligned loads/stores on structure assignments on MIPS

Ian Lance Taylor iant@google.com
Tue Feb 27 06:07:00 GMT 2007


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



More information about the Gcc-help mailing list