2018-03-21 Martin Liska <mliska@suse.cz>
PR target/84988
* tree-chkp.c (CHKP_ARRAY_MAX_CHECK_STEPS): Define a new macro.
(chkp_find_bound_slots_1): Limit number of iterations.
From-SVN: r258704
+2018-03-21 Martin Liska <mliska@suse.cz>
+
+ PR target/84988
+ * tree-chkp.c (CHKP_ARRAY_MAX_CHECK_STEPS): Define a new macro.
+ (chkp_find_bound_slots_1): Limit number of iterations.
+
2018-03-20 David H. Gutteridge <dhgutteridge@sympatico.ca>
PR target/84838
}
}
+/* Maximum number of elements to check in an array. */
+
+#define CHKP_ARRAY_MAX_CHECK_STEPS 4096
+
/* Fill HAVE_BOUND output bitmap with information about
bounds requred for object of type TYPE.
|| integer_minus_onep (maxval))
return;
- for (cur = 0; cur <= TREE_INT_CST_LOW (maxval); cur++)
+ for (cur = 0;
+ cur <= MIN (CHKP_ARRAY_MAX_CHECK_STEPS, TREE_INT_CST_LOW (maxval));
+ cur++)
chkp_find_bound_slots_1 (etype, have_bound, offs + cur * esize);
}
}