optabs.c
254 KB
-
re PR target/50123 (cmpxchg generated for atomic and with zero/or with -1) · 91f59d8b
2011-11-29 Andrew MacLeod <amacleod@redhat.com> PR target/50123 * optabs.c (maybe_optimize_fetch_op): New. Look for more optimal instructions for a FECTH_OP or OP_FECTH sequence. (expand_atomic_fetch_op): Call maybe_optimize_fetch_op. * testsuite/gcc.dg/atomic-op-optimize.c: New. Test for optimizations. From-SVN: r181815
Andrew MacLeod committed