Re: [PATCH, i386]: Optimize ix86_atomic_assign_expand_fenv a bit

2014-07-14 Thread Uros Bizjak
On Mon, Jul 14, 2014 at 10:05 AM, Kyrill Tkachov wrote: >> Attached patch optimizes ix86_atomic_assign_expand_fenv by using >> register form of "fnstsw %ax" instead of "fnstsw ". This way a >> memory RW cycle is removed for a temporary. > > The patch you attached seems to be the hook implementati

Re: [PATCH, i386]: Optimize ix86_atomic_assign_expand_fenv a bit

2014-07-14 Thread Kyrill Tkachov
On 12/07/14 10:07, Uros Bizjak wrote: Hello! Attached patch optimizes ix86_atomic_assign_expand_fenv by using register form of "fnstsw %ax" instead of "fnstsw ". This way a memory RW cycle is removed for a temporary. Hi Uros, The patch you attached seems to be the hook implementation for alp

[PATCH, i386]: Optimize ix86_atomic_assign_expand_fenv a bit

2014-07-12 Thread Uros Bizjak
Hello! Attached patch optimizes ix86_atomic_assign_expand_fenv by using register form of "fnstsw %ax" instead of "fnstsw ". This way a memory RW cycle is removed for a temporary. 2014-07-12 Uros Bizjak * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID. Remove VOID_FTYPE_PUSH