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] | |
- *addr = gen_rtx_PLUS (Pmode, *addr, base);
+ {
+ /* For performance reasons on some processors, prefer
+ the pointer being the first operand of the PLUS. */
+ if (REG_P (*addr) && !REG_POINTER (*addr)
+ && REG_P (base) && REG_POINTER (base))
+ *addr = gen_rtx_PLUS (Pmode, base, *addr);
+ else
+ *addr = gen_rtx_PLUS (Pmode, *addr, base);
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |