This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, RTL-optimization]: Optimize need_atomic_barrier_p a bit


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?

Uros.

Attachment: p.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]