This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, RTL-optimization]: Optimize need_atomic_barrier_p a bit
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 12 Jun 2015 11:08:07 +0200
- Subject: Re: [PATCH, RTL-optimization]: Optimize need_atomic_barrier_p a bit
- Authentication-results: sourceware.org; auth=none
- References: <CAFULd4YY7uZR+T6zmju1i9ZNLVEdhCiacv_Xj0DmShwTPu3m7Q at mail dot gmail dot com>
On Thu, Jun 11, 2015 at 11:35 AM, Uros Bizjak <ubizjak@gmail.com> wrote:
> Hello!
>
> We can use MEMMODEL_BASE_MASK here to avoid a couple of similar cases.
>
> 2015-06-11 Uros Bizjak <ubizjak@gmail.com>
>
> * emit-rtl.c (need_atomic_barrier_p): Mask model with
> MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
>
> Tested on x86_64-linux-gnu {,-m32}.
>
> OK for mainline?
I went ahead and committed the patch to mainline. It is obvious, after all.
Uros.