This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Improve MIN_EXPR/MAX_EXPR constant folding
> I would add some C testcases.
Right, good idea. I'm far too much focused on Ada these days. ;-)
Thanks for the testcases.
> This should simplify now as we get in fold "MIN_EXPR <MAX_EXPR <c, a>,
> c>;" and
> "MAX_EXPR <MIN_EXPR <c, a>, c>". Oh, I see you are comparing only
> constants, I think that is wrong as shown by my example.
Well, not wrong, only on the cautious side. But I agree that we can probably
get rid of OEP_ONLY_CONST.
--
Eric Botcazou