Message ID | 000201d00405$b47309d0$1d591d70$@com |
---|---|
State | New |
Headers | show |
On 19 November 2014 14:32, Wilco Dijkstra <wdijkstr@arm.com> wrote: > Hi Jiong, > > Can you commit this please? > > 2014-11-19 Wilco Dijkstra <wdijkstr@arm.com> > > * gcc/config/aarch64/aarch64.c (generic_regmove_cost): > Increase FP move cost (PR61915). > Use the proper format for referring to PR's in the Changelog. /M
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) };