Re: [PATCH] x86: Properly count cost of XMM register push

2020-05-13 Thread Uros Bizjak via Gcc-patches
On Wed, May 13, 2020 at 3:25 PM H.J. Lu wrote: > > On Wed, May 13, 2020 at 6:17 AM Uros Bizjak wrote: > > > > On Wed, May 13, 2020 at 2:37 PM H.J. Lu wrote: > > > > > > On Wed, May 13, 2020 at 5:04 AM Uros Bizjak wrote: > > > > > > > > On Wed, May 13, 2020 at 1:05 PM Uros Bizjak wrote: > > > >

Re: [PATCH] x86: Properly count cost of XMM register push

2020-05-13 Thread H.J. Lu via Gcc-patches
On Wed, May 13, 2020 at 6:17 AM Uros Bizjak wrote: > > On Wed, May 13, 2020 at 2:37 PM H.J. Lu wrote: > > > > On Wed, May 13, 2020 at 5:04 AM Uros Bizjak wrote: > > > > > > On Wed, May 13, 2020 at 1:05 PM Uros Bizjak wrote: > > > > > > > > On Tue, May 12, 2020 at 10:07 PM H.J. Lu wrote: > > >

Re: [PATCH] x86: Properly count cost of XMM register push

2020-05-13 Thread Uros Bizjak via Gcc-patches
On Wed, May 13, 2020 at 2:37 PM H.J. Lu wrote: > > On Wed, May 13, 2020 at 5:04 AM Uros Bizjak wrote: > > > > On Wed, May 13, 2020 at 1:05 PM Uros Bizjak wrote: > > > > > > On Tue, May 12, 2020 at 10:07 PM H.J. Lu wrote: > > > > > > > > Update STV pass to properly count cost of XMM register pus

Re: [PATCH] x86: Properly count cost of XMM register push

2020-05-13 Thread H.J. Lu via Gcc-patches
On Wed, May 13, 2020 at 5:04 AM Uros Bizjak wrote: > > On Wed, May 13, 2020 at 1:05 PM Uros Bizjak wrote: > > > > On Tue, May 12, 2020 at 10:07 PM H.J. Lu wrote: > > > > > > Update STV pass to properly count cost of XMM register push. In 32-bit > > > mode, to convert XMM register push in DImode

Re: [PATCH] x86: Properly count cost of XMM register push

2020-05-13 Thread Uros Bizjak via Gcc-patches
On Wed, May 13, 2020 at 1:05 PM Uros Bizjak wrote: > > On Tue, May 12, 2020 at 10:07 PM H.J. Lu wrote: > > > > Update STV pass to properly count cost of XMM register push. In 32-bit > > mode, to convert XMM register push in DImode, we do an XMM store in > > DImode, followed by 2 memory pushes in

Re: [PATCH] x86: Properly count cost of XMM register push

2020-05-13 Thread Uros Bizjak via Gcc-patches
On Tue, May 12, 2020 at 10:07 PM H.J. Lu wrote: > > Update STV pass to properly count cost of XMM register push. In 32-bit > mode, to convert XMM register push in DImode, we do an XMM store in > DImode, followed by 2 memory pushes in SImode, instead of 2 integer > register pushes in SImode. To c

[PATCH] x86: Properly count cost of XMM register push

2020-05-12 Thread H.J. Lu via Gcc-patches
Update STV pass to properly count cost of XMM register push. In 32-bit mode, to convert XMM register push in DImode, we do an XMM store in DImode, followed by 2 memory pushes in SImode, instead of 2 integer register pushes in SImode. To convert XM register push in SImode, we do an XMM register to