This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/31169] Bootstrap comparison error at revision 122821



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]