Re: [patch fold-const.c]: Add some missing optimizations about binary and and truth-not

2011-06-20 Thread Mike Stump
On Jun 20, 2011, at 8:38 AM, Jeff Law wrote: >> "do not need" != "cannot" >> >>> This has been discussed several times. So no, this noise isn't at all >>> useful nor welcome. >> >> useful or welcome TO YOU. Obviously, it's useful to us. > Umm, it's neither welcome nor useful to many folks -

Re: [patch fold-const.c]: Add some missing optimizations about binary and and truth-not

2011-06-20 Thread Jeff Law
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/20/11 09:34, NightStrike wrote: > On Mon, Jun 20, 2011 at 10:47 AM, Jakub Jelinek wrote: >> On Mon, Jun 20, 2011 at 10:37:30AM -0400, NightStrike wrote: >>> On Mon, Jun 20, 2011 at 8:06 AM, Jakub Jelinek wrote: On Mon, Jun 20, 2011 at 01:5

Re: [patch fold-const.c]: Add some missing optimizations about binary and and truth-not

2011-06-20 Thread NightStrike
On Mon, Jun 20, 2011 at 10:47 AM, Jakub Jelinek wrote: > On Mon, Jun 20, 2011 at 10:37:30AM -0400, NightStrike wrote: >> On Mon, Jun 20, 2011 at 8:06 AM, Jakub Jelinek wrote: >> > On Mon, Jun 20, 2011 at 01:50:26PM +0200, Kai Tietz wrote: >> >> Applied at revision 175206 to trunk. >> > >> > There

Re: [patch fold-const.c]: Add some missing optimizations about binary and and truth-not

2011-06-20 Thread Jakub Jelinek
On Mon, Jun 20, 2011 at 10:37:30AM -0400, NightStrike wrote: > On Mon, Jun 20, 2011 at 8:06 AM, Jakub Jelinek wrote: > > On Mon, Jun 20, 2011 at 01:50:26PM +0200, Kai Tietz wrote: > >> Applied at revision 175206 to trunk. > > > > There is no need to post such notices to gcc-patches, we have the gc

Re: [patch fold-const.c]: Add some missing optimizations about binary and and truth-not

2011-06-20 Thread NightStrike
On Mon, Jun 20, 2011 at 8:06 AM, Jakub Jelinek wrote: > On Mon, Jun 20, 2011 at 01:50:26PM +0200, Kai Tietz wrote: >> > Ok. >> > Richard. >> >> Applied at revision 175206 to trunk. > > There is no need to post such notices to gcc-patches, we have the gcc-cvs > mailing list where this is automatica

Re: [patch fold-const.c]: Add some missing optimizations about binary and and truth-not

2011-06-20 Thread Jakub Jelinek
On Mon, Jun 20, 2011 at 01:50:26PM +0200, Kai Tietz wrote: > > Ok. > > Richard. > > Applied at revision 175206 to trunk. There is no need to post such notices to gcc-patches, we have the gcc-cvs mailing list where this is automatically posted to. On gcc-patches it just adds unnecessary noise.

Re: [patch fold-const.c]: Add some missing optimizations about binary and and truth-not

2011-06-20 Thread Kai Tietz
2011/6/20 Richard Guenther : > On Mon, Jun 20, 2011 at 12:23 PM, Kai Tietz wrote: >> Hello, >> >> this patch adds to fold_binary_loc some missing optimization for binary >> and operations on truth-not expressions. >> Added cases are: >>  (!X & X) is always zero. >>  (X & !X) is always zero. >>  (X

Re: [patch fold-const.c]: Add some missing optimizations about binary and and truth-not

2011-06-20 Thread Richard Guenther
On Mon, Jun 20, 2011 at 12:23 PM, Kai Tietz wrote: > Hello, > > this patch adds to fold_binary_loc some missing optimization for binary > and operations on truth-not expressions. > Added cases are: >  (!X & X) is always zero. >  (X & !X) is always zero. >  (X == 0) & X is always zero. >  X & (X ==

[patch fold-const.c]: Add some missing optimizations about binary and and truth-not

2011-06-20 Thread Kai Tietz
Hello, this patch adds to fold_binary_loc some missing optimization for binary and operations on truth-not expressions. Added cases are: (!X & X) is always zero. (X & !X) is always zero. (X == 0) & X is always zero. X & (X == 0) is always zero. !X & 1 is X == 0 ChangeLog 2011-06-20 Kai Tie