r254585 - in /trunk/gcc: ChangeLog tree-ssa-loo...

rsandifo@gcc.gnu.org rsandifo@gcc.gnu.org
Thu Nov 9 14:51:00 GMT 2017


Author: rsandifo
Date: Thu Nov  9 14:51:57 2017
New Revision: 254585

URL: https://gcc.gnu.org/viewcvs?rev=254585&root=gcc&view=rev
Log:
Improve ivopts handling of forced scales

This patch improves the ivopts address cost calculation for modes
in which an index must be scaled rather than unscaled.  Previously
we would only try the scaled form if the unscaled form was valid.

Many of the SVE tests rely on this when matching scaled indices.

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

gcc/
	* tree-ssa-loop-ivopts.c (get_address_cost): Try using a
	scaled index even if the unscaled address was invalid.
	Don't increase the complexity of using a scale in that case.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-ssa-loop-ivopts.c



More information about the Gcc-cvs mailing list