r255865 - in /trunk/gcc: ChangeLog optabs.c opt...

rsandifo@gcc.gnu.org rsandifo@gcc.gnu.org
Wed Dec 20 12:52:00 GMT 2017


Author: rsandifo
Date: Wed Dec 20 12:52:04 2017
New Revision: 255865

URL: https://gcc.gnu.org/viewcvs?rev=255865&root=gcc&view=rev
Log:
poly_int: create_integer_operand

This patch generalises create_integer_operand so that it accepts
poly_int64s rather than HOST_WIDE_INTs.

2017-12-20  Richard Sandiford  <richard.sandiford@linaro.org>
	    Alan Hayward  <alan.hayward@arm.com>
	    David Sherwood  <david.sherwood@arm.com>

gcc/
	* optabs.h (expand_operand): Add an int_value field.
	(create_expand_operand): Add an int_value parameter and use it
	to initialize the new expand_operand field.
	(create_integer_operand): Replace with a declaration of a function
	that accepts poly_int64s.  Move the implementation to...
	* optabs.c (create_integer_operand): ...here.
	(maybe_legitimize_operand): For EXPAND_INTEGER, check whether
	the mode preserves the value of int_value, instead of calling
	const_int_operand on the rtx.  Use gen_int_mode to generate
	the new rtx.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/optabs.c
    trunk/gcc/optabs.h



More information about the Gcc-cvs mailing list