Re: [RTL, Patch] Int div by constant compilation enhancement

2014-11-12 Thread H.J. Lu
On Mon, Nov 3, 2014 at 9:01 AM, Alex Velenko wrote: > Hi, > This patch adds a mid-end check to catch division by > constant case and optimize it to generate one shift, > instead of two. > > A testacase to check the correct codegeneration for aarch64 > is added. This check is not made generic, beca

Re: [RTL, Patch] Int div by constant compilation enhancement

2014-11-05 Thread Eric Botcazou
> 2014-11-03 Alex Velenko > > * simplify-rtx.c (simplify_binary_operation_1): Div check added. > * rtl.h (SUBREG_P): New macro added. Present tense in Change entries: * rtl.h (SUBREG_P): New macro. * simplify-rtx.c (simplify_binary_operation_1): Simplify consecutive

Re: [RTL, Patch] Int div by constant compilation enhancement

2014-11-04 Thread Jeff Law
On 11/03/14 10:01, Alex Velenko wrote: Hi, This patch adds a mid-end check to catch division by constant case and optimize it to generate one shift, instead of two. A testacase to check the correct codegeneration for aarch64 is added. This check is not made generic, because the optimisation impl

[RTL, Patch] Int div by constant compilation enhancement

2014-11-03 Thread Alex Velenko
31d Mon Sep 17 00:00:00 2001 From: Alex Velenko Date: Mon, 6 Oct 2014 15:33:36 +0100 Subject: [PATCH] [RTL, Patch] Int div by constant compilation enhancement This patch adds a mid-end check to catch division by constant case and optimize it to generate one shift, instead of two. A testacase to ch