Optimize casMutVar# for single-threaded RTS
authorDavid Feuer <david.feuer@gmail.com>
Mon, 8 May 2017 21:44:37 +0000 (17:44 -0400)
committerBen Gamari <ben@smart-cactus.org>
Mon, 8 May 2017 21:44:57 +0000 (17:44 -0400)
commitff7a3c4f9034af0aca1119c1c1e8f7187460bbad
treece4576aeff8b6727754035dad15ddcc97a6e0e36
parent87ff5d4f0f812bad118600df0156f980b91191c5
Optimize casMutVar# for single-threaded RTS

The single-threaded RTS shouldn't actually need to use CAS to
implement `casMutVar#`; there are no other threads to coordinate
with.

Reviewers: austin, bgamari, erikd, simonmar

Reviewed By: simonmar

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3544
rts/PrimOps.cmm