Re: [PATCH] Improve tree_unary_nonnegative_warnv_p (PR middle-end/58564)

2013-09-30 Thread Richard Biener
On Mon, 30 Sep 2013, Jakub Jelinek wrote: > Hi! > > Related to the last patch, this handles also BOOLEAN_TYPE and > ENUMERAL_TYPE the same as INTEGER_TYPE in tree_unary_nonnegative_warnv_p, > which means we e.g. fold properly the (int) (x != 0 && y != 0) < 0 > when (x != 0 && y != 0) has BOOLEAN_

[PATCH] Improve tree_unary_nonnegative_warnv_p (PR middle-end/58564)

2013-09-30 Thread Jakub Jelinek
Hi! Related to the last patch, this handles also BOOLEAN_TYPE and ENUMERAL_TYPE the same as INTEGER_TYPE in tree_unary_nonnegative_warnv_p, which means we e.g. fold properly the (int) (x != 0 && y != 0) < 0 when (x != 0 && y != 0) has BOOLEAN_TYPE. Bootstrapped/regtested on x86_64-linux and i686-