Re: [AArch64] Tighten aarch64_secondary_reload condition (PR 83845)

2018-02-01 Thread James Greenhalgh
On Fri, Jan 26, 2018 at 01:34:31PM +, Richard Sandiford wrote: > aarch64_secondary_reload enforced a secondary reload via > aarch64_sve_reload_be for memory and pseudo registers, but failed > to do the same for subregs of pseudo registers. To avoid this and > any similar problems, the patch

[AArch64] Tighten aarch64_secondary_reload condition (PR 83845)

2018-01-26 Thread Richard Sandiford
aarch64_secondary_reload enforced a secondary reload via aarch64_sve_reload_be for memory and pseudo registers, but failed to do the same for subregs of pseudo registers. To avoid this and any similar problems, the patch instead tests for things that the move patterns handle directly; if the