[PATCH] rtl: add predicates for addition, subtraction & multiplication

2022-11-26 Thread Charlie Sale via Gcc-patches
This is my first contribution to GCC :) one of the beginner projects suggested on the website was to add and use RTL type predicates. I added predicates for addition, subtraction and multiplication. I also went through and used them in the code. I did not add tests because I'm not addding/modifyin

Re: [PATCH] tree-optimization/103356 Add missing (~a) == b folding for _Bool

2022-11-26 Thread Richard Biener via Gcc-patches
> Am 26.11.2022 um 17:42 schrieb apinski--- via Gcc-patches > : > > From: Andrew Pinski > > The following makes sure to fold (~a) == b to a ^ b for truth > values. > > OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. Ok. Richard > Thanks, > Andrew Pinski > >PR

[PATCH] tree-optimization/103356 Add missing (~a) == b folding for _Bool

2022-11-26 Thread apinski--- via Gcc-patches
From: Andrew Pinski The following makes sure to fold (~a) == b to a ^ b for truth values. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. Thanks, Andrew Pinski PR 103356 gcc/ChangeLog: * match.pd: ((~a) == b -> a ^ b): New pattern. gcc/testsuite/ChangeL

Re: [PATCH 19/56] Revert "Move void_list_node init to common code". (8ff2a92a0450243e52d3299a13b30f208bafa7e0)

2022-11-26 Thread Zopolis0 via Gcc-patches
> What happens if you remove end_params_node from the Java front-end and > replace it with void_list_node? Sadly, nothing.

Re: [PATCH 16/56] gcc: Re-add TYPE_METHODS.

2022-11-26 Thread Zopolis0 via Gcc-patches
> No. Java was removed to reduce the maintenance burden, you can't just > reintroduce the burden and say "hey, I don't want to pay for the burden > so you please do it". There were two sentences there. You appear to only have read the first one. I just took on 6 years of that maintenance burden