Re: [PATCH 1/2] Improve/Fix (m1 CMP m2) * d -> (m1 CMP m2) ? d : 0 pattern.

2021-11-22 Thread Richard Biener via Gcc-patches
On Mon, Nov 22, 2021 at 7:25 AM apinski--- via Gcc-patches wrote: > > From: Andrew Pinski > > The pattern here was not catching all comparisons and the multiply > was not commutative when it should have been. This patches fixes > that by using tcc_comparison and adding :c to the multiply. > >

[PATCH 1/2] Improve/Fix (m1 CMP m2) * d -> (m1 CMP m2) ? d : 0 pattern.

2021-11-21 Thread apinski--- via Gcc-patches
From: Andrew Pinski The pattern here was not catching all comparisons and the multiply was not commutative when it should have been. This patches fixes that by using tcc_comparison and adding :c to the multiply. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions.