Message ID | 000101d00018$449fc1c0$cddf4540$@com |
---|---|
State | New |
Headers | show |
On 14 November 2014 14:35, Wilco Dijkstra <wdijkstr@arm.com> wrote: > 2014-11-14 Wilco Dijkstra <wdijkstr@arm.com> > > * gcc/config/aarch64/aarch64.c (generic_regmove_cost): > Increase FP move cost. OK /Marcus
On Mon, Nov 17, 2014 at 5:13 PM, Marcus Shawcroft <marcus.shawcroft@gmail.com> wrote: > On 14 November 2014 14:35, Wilco Dijkstra <wdijkstr@arm.com> wrote: > >> 2014-11-14 Wilco Dijkstra <wdijkstr@arm.com> >> >> * gcc/config/aarch64/aarch64.c (generic_regmove_cost): >> Increase FP move cost. > > OK /Marcus Changelog should probably indicate PR target/61915 when committing ? Ramana
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index de53c94..cd30724 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -218,8 +218,10 @@ __extension__ static const struct cpu_regmove_cost generic_regmove_cost = { NAMED_PARAM (GP2GP, 1), - NAMED_PARAM (GP2FP, 2), - NAMED_PARAM (FP2GP, 2), + /* Avoid the use of slow int<->fp moves for spilling by setting + their cost higher than memmov_cost. */ + NAMED_PARAM (GP2FP, 5), + NAMED_PARAM (FP2GP, 5), NAMED_PARAM (FP2FP, 2) };