Commit 30fec2f9 by Richard Biener Committed by Richard Biener

re PR tree-optimization/78699 (ICE (segfault) on powerpc64le-linux-gnu (memory-hog))

2016-12-13  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/78699
	* tree-vect-data-refs.c (vect_analyze_group_access_1): Limit
	group size.

From-SVN: r243599
parent 6182121c
2016-12-13 Richard Biener <rguenther@suse.de> 2016-12-13 Richard Biener <rguenther@suse.de>
PR tree-optimization/78699
* tree-vect-data-refs.c (vect_analyze_group_access_1): Limit
group size.
2016-12-13 Richard Biener <rguenther@suse.de>
PR middle-end/78742 PR middle-end/78742
* tree.c (cst_and_fits_in_hwi): Look if the actual value fits. * tree.c (cst_and_fits_in_hwi): Look if the actual value fits.
* tree-object-size.c (compute_builtin_object_size): Use * tree-object-size.c (compute_builtin_object_size): Use
...@@ -2390,7 +2390,9 @@ vect_analyze_group_access_1 (struct data_reference *dr) ...@@ -2390,7 +2390,9 @@ vect_analyze_group_access_1 (struct data_reference *dr)
if (groupsize == 0) if (groupsize == 0)
groupsize = count + gaps; groupsize = count + gaps;
if (groupsize > UINT_MAX) /* This could be UINT_MAX but as we are generating code in a very
inefficient way we have to cap earlier. See PR78699 for example. */
if (groupsize > 4096)
{ {
if (dump_enabled_p ()) if (dump_enabled_p ())
dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location, dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment