Re: [PATCH v2]: Optimize a >= 0 && b >= 0 to (a | b) >= 0 [PR95731]

2020-07-10 Thread Marc Glisse
On Fri, 10 Jul 2020, Joe Ramsay wrote: adds a new pattern to simplify a >= 0 && b >= 0 to (a | b) >= 0. We should probably add the symmetric simplification of a<0|b<0 to (a|b)<0 * match.pd: New simplication. I think Jakub was suggesting something slightly mode detailed. It would

[PATCH v2]: Optimize a >= 0 && b >= 0 to (a | b) >= 0 [PR95731]

2020-07-10 Thread Joe Ramsay
Hi! Apologies, resending as I previously attached the wrong patch file. This is a fix for PR95731, which adds a new pattern to simplify a >= 0 && b >= 0 to (a | b) >= 0. Bootstrapped and tested on x86_linux and aarch64_linux. Any comments are appreciated. Thanks, Joe gcc/ChangeLog: