diff options
author | Richard Biener <rguenther@suse.de> | 2018-06-29 09:49:14 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2018-06-29 09:49:14 +0000 |
commit | c2fd033cdf1876ff4ec91c747c6fc569de19b322 (patch) | |
tree | f78350f5786574a3f861377ab7a26d226f41845f /gcc/tree-vect-loop.c | |
parent | 135101526e13c156567fe99256600914467a5f21 (diff) | |
download | gcc-c2fd033cdf1876ff4ec91c747c6fc569de19b322.zip gcc-c2fd033cdf1876ff4ec91c747c6fc569de19b322.tar.gz gcc-c2fd033cdf1876ff4ec91c747c6fc569de19b322.tar.bz2 |
tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Assert compute_all_dependences succeeds.
2018-06-29 Richard Biener <rguenther@suse.de>
* tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Assert
compute_all_dependences succeeds.
* tree-vect-loop.c (vect_get_datarefs_in_loop): Fail early if we
exceed --param loop-max-datarefs-for-datadeps.
From-SVN: r262244
Diffstat (limited to 'gcc/tree-vect-loop.c')
-rw-r--r-- | gcc/tree-vect-loop.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c index ab76be0..8741e0b 100644 --- a/gcc/tree-vect-loop.c +++ b/gcc/tree-vect-loop.c @@ -1812,6 +1812,11 @@ vect_get_datarefs_in_loop (loop_p loop, basic_block *bbs, } return false; } + /* If dependence analysis will give up due to the limit on the + number of datarefs stop here and fail fatally. */ + if (datarefs->length () + > (unsigned)PARAM_VALUE (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS)) + return false; } return true; } |