This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix ARM ldm/stm peephole2 loop


With -mtune=xscale, arm_gen_load_multiple_1 doesn't actually generate a
load-multiple for two loads, but single instructions.  This causes a
peephole2 loop where we try to optimize the same instructions over and
over again.

Fixed by teaching multiple_operation_profitable_p about this situation.  Ok?


Bernd

Attachment: xscale-ldm.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]