This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/31169] Bootstrap comparison error at revision 122821
- From: "dave at hiauly1 dot hia dot nrc dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Mar 2007 00:17:12 -0000
- Subject: [Bug tree-optimization/31169] Bootstrap comparison error at revision 122821
- References: <bug-31169-276@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #42 from dave at hiauly1 dot hia dot nrc dot ca 2007-03-31 01:17 -------
Subject: Re: Bootstrap comparison error at revision 122821
+ /* We know that the range of input values covers the entire
+ shift space. Reduce to canonical [0,width-1]. */
+ vr1.min = build_int_cst (TREE_TYPE (vr1.min), 0);
+ vr1.max = build_int_cst (TREE_TYPE (vr1.max), prec - 1);
Wouldn't it be slightly better to just call range_includes_zero_p (&vr1)
and return at this point?
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31169