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]
Other format: [Raw text]

Re: [PATCH]: Handle CONJ_EXPR in negate_expr_p and fold_negate_expr


Now, if we start with -~(x, 5) then first we fold that to -(x, -5) and leave it this way.

No, we won't because (x, 5) is not "negatable" (because 5 is negatable but 5 is not). I'm speaking of negate_expr, not fold_unary.


If we start with -~(5,x) we fold this to -(5,-x) (maybe questionable,
see fold_unary of CONJ_EXPR) and then to (-5,x).

Again, we won't do the initial folding in negate_expr.


Paolo


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