This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, MIPS] Add most common atomic patterns
- From: Richard Henderson <rth at redhat dot com>
- To: Maxim Kuvyrkov <maxim at codesourcery dot com>
- Cc: Richard Sandiford <rdsandiford at googlemail dot com>, Tom de Vries <vries at codesourcery dot com>, gcc-patches Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 13 Jun 2012 12:57:25 -0700
- Subject: Re: [PATCH, MIPS] Add most common atomic patterns
- References: <6BB30BFE-2322-45D3-A898-FBD3FEDE84D2@codesourcery.com>
On 2012-06-12 22:50, Maxim Kuvyrkov wrote:
> The third patch is a small optimization to alleviate
> __atomic_compare_exchange[_n] builtins being a use-one-for-all
> solutions. These builtins return both boolean "success" and "oldval"
> results. As most cases use only one of the results, this
> optimizations looks at REG_UNUSED notes to determine if instructions
> to set these results can be omitted.
If you split the pattern, similar to how it's handled on Alpha,
and normal dead-code elimination will handle this.
r~