RE: [PATCH 3/7]AArch64 Add pattern for sshr to cmlt

2021-10-12 Thread Tamar Christina via Gcc-patches
gnu.org; > apin...@marvell.com; Richard Earnshaw ; nd > ; Marcus Shawcroft ; Richard > Sandiford > Subject: RE: [PATCH 3/7]AArch64 Add pattern for sshr to cmlt > > > > > -Original Message- > > From: Andrew Pinski > > Sent: Monday, October 11, 2021 8

RE: [PATCH 3/7]AArch64 Add pattern for sshr to cmlt

2021-10-12 Thread Kyrylo Tkachov via Gcc-patches
gcc-patches@gcc.gnu.org > > > Cc: nd ; Richard Earnshaw > ; > > > Marcus Shawcroft ; Kyrylo Tkachov > > > ; Richard Sandiford > > > > > > Subject: [PATCH 3/7]AArch64 Add pattern for sshr to cmlt > > > > > > Hi All, > > > > >

Re: [PATCH 3/7]AArch64 Add pattern for sshr to cmlt

2021-10-11 Thread Andrew Pinski via Gcc-patches
croft ; Kyrylo Tkachov > > ; Richard Sandiford > > > > Subject: [PATCH 3/7]AArch64 Add pattern for sshr to cmlt > > > > Hi All, > > > > This optimizes signed right shift by BITSIZE-1 into a cmlt operation which > > is > > more optimal because general

RE: [PATCH 3/7]AArch64 Add pattern for sshr to cmlt

2021-09-30 Thread Kyrylo Tkachov via Gcc-patches
> -Original Message- > From: Tamar Christina > Sent: Wednesday, September 29, 2021 5:20 PM > To: gcc-patches@gcc.gnu.org > Cc: nd ; Richard Earnshaw ; > Marcus Shawcroft ; Kyrylo Tkachov > ; Richard Sandiford > > Subject: [PATCH 3/7]AArch64 Add pattern f

[PATCH 3/7]AArch64 Add pattern for sshr to cmlt

2021-09-29 Thread Tamar Christina via Gcc-patches
Hi All, This optimizes signed right shift by BITSIZE-1 into a cmlt operation which is more optimal because generally compares have a higher throughput than shifts. On AArch64 the result of the shift would have been either -1 or 0 which is the results of the compare. i.e. void e (int * restrict