Re: Fold more boolean expressions

2018-10-02 Thread MCC CS
Thanks a lot!

Re: Fold more boolean expressions

2018-09-30 Thread MCC CS
me. 2018-09-30 MCC CS gcc/ PR tree-optimization/87261 * match.pd: Add boolean optimizations, fix whitespace. 2018-09-30 MCC CS gcc/testsuite/ PR tree-optimization/87261 * gcc.dg/pr87261.c: New test. Index: gcc/match.pd === -

Re: Fold more boolean expressions

2018-09-22 Thread MCC CS
Thanks a lot for the review, Richard! - I have updated the patch. - Had done a full "make check" with the second draft. - Did a "make check-gcc" with the final patch. - Both tests have the same tests failing, that always fail: g++.dg/pr80481.C g++.dg/pr83239.C Would be great if anyone willing co

Re: Fold more boolean expressions

2018-09-16 Thread MCC CS
Hi, I have bootstrapped and make check'd my final patch on latest trunk. Is it OK? Could you please push it if possible? The patch can be found here, but please update the commit message date: https://gcc.gnu.org/ml/gcc-patches/2018-09/msg00803.html Test result: Native configuration is x86_64-pc

Re: Fold more boolean expressions

2018-09-14 Thread MCC CS
Sorry for doing the same mistake twice. Is this OK, and do I need to test it again after the first version of this patch? 2018-09-15 MCC CS gcc/ PR tree-optimization/87261 * match.pd: Add boolean optimizations, fix whitespace. 2018-09-15 MCC CS gcc

Re: Fold more boolean expressions

2018-09-14 Thread MCC CS
Thanks for the review! I've cleaned up the :s and :c flags. You can see the changes here: https://www.diffchecker.com/sjNOq5TQ Anyone else have time for another review? Would be really appreciated. 2018-09-14 MCC CS gcc/ PR tree-optimization/87261 * match.pd

Fold more boolean expressions

2018-09-11 Thread MCC CS
Hi everyone, this patch optimizes a few boolean expressions, and fixes some unneeded whitespace. Will do a full make check soon. Thanks for your time. 2018-09-11 MCC CS gcc/ PR tree-optimization/87261 * match.pd: Add boolean optimizations, fix whitespace

Re: [PATCH] Optimize more boolean functions

2018-08-28 Thread MCC CS
Hi again, I guess I haven't been clear enough. I don't have push access, is it possible for you to push my patch to trunk? The same patch as: https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01688.html but updated dates. 2018-08-28 MCC CS gcc/ PR tree-optimiza

Re: [PATCH] Optimize more boolean functions

2018-08-27 Thread MCC CS
Added :s to the second pattern, updated dates. Thank you so much for your reviews! 2018-08-27 MCC CS gcc/ PR tree-optimization/87009 * match.pd: Add boolean optimizations. 2018-08-27 MCC CS gcc/testsuite/ PR tree-optimization/87009 * gcc.dg

Re: [PATCH] Optimize more boolean functions

2018-08-27 Thread MCC CS
History: patch: https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01159.html review 1: https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01169.html updated patch: https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01299.html Below is an exact copy of the updated patch: 2018-08-21 MCC CS gcc/ PR tree-opt

Re: [PATCH] Optimize more boolean functions

2018-08-21 Thread MCC CS
ge-summaries and improved tests. 2018-08-21 MCC CS gcc/ PR tree-optimization/87009 * match.pd: Add boolean optimizations. 2018-08-21 MCC CS gcc/testsuite/ PR tree-optimization/87009 * gcc.dg/pr87009.c: New t

[PATCH] Optimize more boolean functions

2018-08-20 Thread MCC CS
Hi everyone, this patch optimizes ~(~x | y), (~x | y) & (x | ~y) and (~x | y) ^ (x | ~y). Thanks to Marc Glisse for noticing that the last two weren't optimized.   I'll post the test results soon, it took three hours in addition to timeouts and I had to terminate it.   Waiting for your comments.

Re: [PATCH] Optimize logarithm addition and subtraction

2018-08-05 Thread MCC CS
> Sent: Sunday, August 05, 2018 at 8:17 PM > From: "Marc Glisse" > To: "MCC CS" > Cc: gcc-patches@gcc.gnu.org > Subject: Re: [PATCH] Optimize logarithm addition and subtraction > > On Sun, 5 Aug 2018, MCC CS wrote: > > > this patch reduces calls

[PATCH] Optimize logarithm addition and subtraction

2018-08-05 Thread MCC CS
Hi everyone, this patch reduces calls to logarithm functions by merging log a + log b => log a*b and log a - log b => log a/b This is my first contribution, so have I forgot something? I think a contributor agreement is not needed since it's a 20-line patch, and I may not have time to contribute i