[Bug c/27007] Missed optimization of comparison with 'limited range'

dberlin at dberlin dot org gcc-bugzilla@gcc.gnu.org
Mon Apr 3 19:44:00 GMT 2006



------- Comment #4 from dberlin at gcc dot gnu dot org  2006-04-03 19:44 -------
Subject: Re:  Missed optimization of comparison with 'limited
        range'

On Mon, 2006-04-03 at 19:22 +0000, trt at acm dot org wrote:
> 
> ------- Comment #3 from trt at acm dot org  2006-04-03 19:22 -------
> Since x is unsigned char, default promotions apply and x+1 will be a signed
> integer in the range 1..256

In that case, VRP should be able to extract the useful "~0" range from
this.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27007



More information about the Gcc-bugs mailing list