This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to fold-const.c to convert (or (not ...) (not ...))
- To: Jan Hubicka <hubicka at atrey dot karlin dot mff dot cuni dot cz>
- Subject: Re: Patch to fold-const.c to convert (or (not ...) (not ...))
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 14 Oct 1999 23:36:45 -0600
- cc: egcs-patches at egcs dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <19991014135333.33104@atrey.karlin.mff.cuni.cz>you write:
> Thu Oct 14 13:49:30 MET DST 1999 Jan Hubicka <hubicka@freesoft.cz>
> * fold-const.c (fold_expr): Convert (or (not arg0) (not arg1))
> to (not (and (arg0) (arg1))). Similary for and.
Installed.
I updated the comments a little.
At the tree level, there is no real canonical form for these kinds of
expressions. The canonical form applies only to RTL and is primarily to
make it easier to write backends and optimizers since they only have to
check for one form.
Patch also rejected your patch, so I had to apply it by hand. Please be
careful when submitting patches you have edited.
jeff