Re: Simplify cst_and_fits_in_hwi

2016-05-02 Thread Richard Biener
On Fri, Apr 29, 2016 at 2:34 PM, Richard Sandiford wrote: > While looking at the use of cst_and_fits_in_hwi in tree-ssa-loop-ivopts.c, > I had difficulty working out what the function actually tests. The > final NUNITS check seems redundant, since it asks about the number of > HWIs in the _unexte

Simplify cst_and_fits_in_hwi

2016-04-29 Thread Richard Sandiford
While looking at the use of cst_and_fits_in_hwi in tree-ssa-loop-ivopts.c, I had difficulty working out what the function actually tests. The final NUNITS check seems redundant, since it asks about the number of HWIs in the _unextended_ constant. We've already checked that the unextended constant