This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH 2/3] Add simplify rules for wrapped binary operations.
> +/* ((T)(A + CST1)) + CST2 -> (T)(A) + CST */
> Do you want to handle MINUS? What about POINTER_PLUS_EXPR?
When I last attempted this patch I had the MINUS still in it but got
confused easily by needing to think of too many cases at once leading to
lots of stupid mistakes. Hence, I left it out in the last revision :)
Once everything is in place, I guess the additional cases can be added
more easily - hope that's reasonable.