r235722 - in /trunk/gcc: ChangeLog tree.c

rsandifo@gcc.gnu.org rsandifo@gcc.gnu.org
Mon May 2 09:40:00 GMT 2016


Author: rsandifo
Date: Mon May  2 09:40:32 2016
New Revision: 235722

URL: https://gcc.gnu.org/viewcvs?rev=235722&root=gcc&view=rev
Log:
Simplify cst_and_fits_in_hwi

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 has no more than HOST_BITS_PER_WIDE_INT bits, so the
length must be 1.

I think this was my fault, sorry.

Tested on x86_64-linux-gnu and aarch64-linux-gnu.

gcc/
	* tree.c (cst_and_fits_in_hwi): Simplify.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree.c



More information about the Gcc-cvs mailing list