Re: [PATCH][GCC][AArch64] optimize integer immediate moves with partial masks.

2017-06-09 Thread James Greenhalgh
On Wed, Jun 07, 2017 at 12:38:22PM +0100, Tamar Christina wrote: > Hi All, > > This patch optimizes integer moves for cases where where the move could be > done > move efficiently using a smaller mode. > > For example: > > long long f1(void) > { > return 0x; > } > > long f2(void) >

[PATCH][GCC][AArch64] optimize integer immediate moves with partial masks.

2017-06-07 Thread Tamar Christina
Hi All, This patch optimizes integer moves for cases where where the move could be done move efficiently using a smaller mode. For example: long long f1(void) { return 0x; } long f2(void) { return 0x; } generates: f1: mov w0, 4294927974 ret f