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]

Re: Patch to fold-const.c to convert (or (not ...) (not ...))


  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


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