2018-08-17 Richard Biener <rguenther@suse.de>
PR tree-optimization/86841
* wide-int-range.cc (wide_int_range_lshift): Use to_uhwi.
From-SVN: r263615
+2018-08-17 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/86841
+ * wide-int-range.cc (wide_int_range_lshift): Use to_uhwi.
+
2018-08-17 Martin Liska <mliska@suse.cz>
* common.opt: Remove Warn, Init and Report for options with
/* Transform left shifts by constants into multiplies. */
if (wi::eq_p (vr1_lb, vr1_ub))
{
- int shift = wi::extract_uhwi (vr1_ub, 0, vr1_ub.get_precision ());
+ unsigned shift = vr1_ub.to_uhwi ();
wide_int tmp = wi::set_bit_in_zero (shift, prec);
return wide_int_range_multiplicative_op (res_lb, res_ub,
MULT_EXPR, sign, prec,