This is the mail archive of the gcc-patches@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]

Re: [PATCH] Optimize tablejumps for switch statements


On Wed, Oct 24, 2001 at 04:56:37PM -0600, Roger Sayle wrote:
>     /* RANGE may be signed and really large ranges will show up as
>        negative numbers.  */
>     || compare_tree_int (range, 0) < 0
> 
> Hence if "minval=1" and "maxval=HOST_WIDE_INT_MAX+1" then the optimization
> should not be applied...

The comment lies.  It predates compare_tree_int which
handles this correctly.


r~


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