On Tue, Aug 22, 2017 at 10:25:02AM +0100, Richard Sandiford wrote:
> Previously we allowed subregs of non-GPR modes to be base and index
> registers in non-strict mode.  In practice such subregs will always
> require a reload, so we get better code by disallowing them.

Makes sense.

> Tested on aarch64-linux-gnu.  OK to install?

OK.

Thanks,
James

> 2017-08-22  Richard Sandiford  <richard.sandif...@linaro.org>
>           Alan Hayward  <alan.hayw...@arm.com>
>           David Sherwood  <david.sherw...@arm.com>
> 
> gcc/
>       * config/aarch64/aarch64.c (aarch64_base_register_rtx_p): Only allow
>       subregs whose inner modes can be stored in GPRs.
>       (aarch64_classify_index): Likewise.
> 

Reply via email to