Re: [PATCH] Fix init_range_entry (PR tree-optimization/58364)

2013-09-09 Thread Richard Biener
Jakub Jelinek wrote: >Hi! > >It is not safe to always handle a = ~b; for bool a and b as >in_p = !in_p; exp = arg0. If the current range is say >+[-,-] or -[-,-] or similar (i.e. unconditional false or true), >then the value of exp doesn't matter and thus the fact that exp >has been negated is ir

[PATCH] Fix init_range_entry (PR tree-optimization/58364)

2013-09-09 Thread Jakub Jelinek
Hi! It is not safe to always handle a = ~b; for bool a and b as in_p = !in_p; exp = arg0. If the current range is say +[-,-] or -[-,-] or similar (i.e. unconditional false or true), then the value of exp doesn't matter and thus the fact that exp has been negated is irrelevant. Fixed by just maki