This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/68908] inefficient code for _Atomic operations
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 15 Dec 2015 15:21:41 +0000
- Subject: [Bug target/68908] inefficient code for _Atomic operations
- Auto-submitted: auto-generated
- References: <bug-68908-4 at http dot gcc dot gnu dot org/bugzilla/>
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.