r277965 - in /trunk/gcc: ChangeLog testsuite/Ch...

rsandifo@gcc.gnu.org rsandifo@gcc.gnu.org
Fri Nov 8 11:58:00 GMT 2019


Author: rsandifo
Date: Fri Nov  8 11:58:45 2019
New Revision: 277965

URL: https://gcc.gnu.org/viewcvs?rev=277965&root=gcc&view=rev
Log:
Fix code order in tree-sra.c:create_access

If get_ref_base_and_extent returns poly_int offsets or sizes,
tree-sra.c:create_access prevents SRA from being applied to the base.
However, we haven't verified by that point that we have a valid base
to disqualify.

This originally led to an ICE on the attached testcase, but it
no longer triggers there after the introduction of IPA SRA.

2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
	* tree-sra.c (create_access): Delay disqualifying the base
	for poly_int values until we know we have a base.

gcc/testsuite/
	* gcc.target/aarch64/sve/acle/general/inline_2.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/aarch64/sve/acle/general/inline_2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-sra.c



More information about the Gcc-cvs mailing list