Re: [AArch64][PATCH 2/2] Combine AES instructions with xor and zero operands

2018-06-19 Thread James Greenhalgh
On Mon, Jun 18, 2018 at 04:38:44AM -0500, Andre Simoes Dias Vieira wrote: > Hi, > > This patch teaches the AArch64 backend that AES instructions with a XOR and > zero operands can be simplified by replacing the operands of the AES with > XOR's thus eliminating the XOR. This is OK because the AES i

[AArch64][PATCH 2/2] Combine AES instructions with xor and zero operands

2018-06-18 Thread Andre Simoes Dias Vieira
Hi, This patch teaches the AArch64 backend that AES instructions with a XOR and zero operands can be simplified by replacing the operands of the AES with XOR's thus eliminating the XOR. This is OK because the AES instruction XORs the input operands. This will improve code-generation when deali