+2011-01-25 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/47411
+ Backport from mainline
+ 2010-06-30 Michael Matz <matz@suse.de>
+
+ PR bootstrap/44699
+ * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
+
2011-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
Backport from mainline.
size_t i;
prop_value_t *single_val_range;
bool do_value_subst_p;
+ unsigned num = num_ssa_names;
if (dump_file)
{
/* We may have ended with ranges that have exactly one value. Those
values can be substituted as any other const propagated
value using substitute_and_fold. */
- single_val_range = XCNEWVEC (prop_value_t, num_ssa_names);
+ single_val_range = XCNEWVEC (prop_value_t, num);
do_value_subst_p = false;
- for (i = 0; i < num_ssa_names; i++)
+ for (i = 0; i < num; i++)
if (vr_value[i]
&& vr_value[i]->type == VR_RANGE
&& vr_value[i]->min == vr_value[i]->max
identify_jump_threads ();
/* Free allocated memory. */
- for (i = 0; i < num_ssa_names; i++)
+ for (i = 0; i < num; i++)
if (vr_value[i])
{
BITMAP_FREE (vr_value[i]->equiv);