This is the mail archive of the gcc-bugs@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]

[Bug target/68908] inefficient code for _Atomic operations


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68908

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amacleod at redhat dot com

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Inviting Richard and Andrew to comment.
I'm afraid that the pattern-matching approach would be quite fragile, but as
Jakub pointed out elsewhere, it'd have the advantage that even user written
code with manual atomic_load and compare_and_swap could be optimized into the
fetch_and_* patterns.

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