r251483 - /trunk/gcc/postreload.c

rsandifo@gcc.gnu.org rsandifo@gcc.gnu.org
Wed Aug 30 11:12:00 GMT 2017


Author: rsandifo
Date: Wed Aug 30 11:12:41 2017
New Revision: 251483

URL: https://gcc.gnu.org/viewcvs?rev=251483&root=gcc&view=rev
Log:
[31/77] Use scalar_int_mode for move2add

The postreload move2add optimisations are specific to scalar
integers.  This patch adds an explicit check to the main guarding
"if" and propagates the information through subroutines.

gcc/
2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
	    Alan Hayward  <alan.hayward@arm.com>
	    David Sherwood  <david.sherwood@arm.com>

	* postreload.c (move2add_valid_value_p): Change the type of the
	mode parameter to scalar_int_mode.
	(move2add_use_add2_insn): Add a mode parameter and use it instead
	of GET_MODE (reg).
	(move2add_use_add3_insn): Likewise.
	(reload_cse_move2add): Update accordingly.

Modified:
    trunk/gcc/postreload.c



More information about the Gcc-cvs mailing list