This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Extend neg_const_int simplifications to other const rtxes


On 9/18/19 12:56 AM, Richard Sandiford wrote:
> This patch generalises some neg_const_int-based rtx simplifications
> so that they handle all CONST_SCALAR_INTs and also CONST_POLY_INT.
> This actually simplifies things a bit, since we no longer have
> to treat HOST_WIDE_INT_MIN specially.
> 
> This is tested by later SVE patches.
> 
> Tested on aarch64-linux-gnu with SVE (with and without follow-on
> patches) and x86_64-linux-gnu.  OK to install?
> 
> Richard
> 
> 
> 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
> 
> gcc/
> 	* simplify-rtx.c (neg_const_int): Replace with...
> 	(neg_poly_int_rtx): ...this new function.
> 	(simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
> 	to all CONST_SCALAR_INTs and to CONST_POLY_INT.
> 	(simplify_plus_minus): Likewise for constant terms here.
OK
jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]