On Fri, Apr 22, 2016 at 01:22:51PM +0000, Wilco Dijkstra wrote:
> Improve modes_tieable by returning true in more cases: allow scalar access
> within vectors without requiring an extra move. Removing these moves helps
> the register allocator in deciding whether to use integer or FP registers on
> operations that can be done on both. This saves about 100 instructions in the
> gcc.target/aarch64 tests.
> 
> A typical example:
> 
>       orr     v1.8b, v0.8b, v1.8b
>       fmov    x0, d0
>       fmov    x1, d1
>       add     x0, x1, x0
>       ins     v0.d[0], x0
>       orr     v0.8b, v1.8b, v0.8b
> 
> after:
> 
>       orr     v1.8b, v0.8b, v1.8b
>       add     d0, d1, d0
>       orr     v0.8b, v1.8b, v0.8b
> 
> OK for trunk?

OK.

Thanks,
James

> 
> ChangeLog:
> 2016-04-22  Wilco Dijkstra  <wdijk...@arm.com>
> 
>       * gcc/config/aarch64/aarch64.c (aarch64_modes_tieable_p):
>       Allow scalar/single vector modes to be tieable.
> 
 

Reply via email to