diff options
author | Simon Marlow <marlowsd@gmail.com> | 2018-02-18 11:09:19 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-02-18 11:57:45 -0500 |
commit | c05529c2219d12ee950eb8972e1aca135cd8e032 (patch) | |
tree | 557d1615f569d8448da5f3c0f96434d45e064a09 /compiler/prelude/primops.txt.pp | |
parent | ccda4862102104e080a200e4d9c2ca8f42eb5b70 (diff) | |
download | haskell-c05529c2219d12ee950eb8972e1aca135cd8e032.tar.gz |
myThreadId# is trivial; make it an inline primop
The pattern `threadCapability =<< myThreadId` is used a lot in code
that uses `hs_try_putmvar`, I want to make it cheaper.
Test Plan: validate
Reviewers: bgamari, erikd
Reviewed By: bgamari
Subscribers: rwbarton, thomie, carter
Differential Revision: https://phabricator.haskell.org/D4381
Diffstat (limited to 'compiler/prelude/primops.txt.pp')
-rw-r--r-- | compiler/prelude/primops.txt.pp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/prelude/primops.txt.pp b/compiler/prelude/primops.txt.pp index 43e8f535d3..038d350a76 100644 --- a/compiler/prelude/primops.txt.pp +++ b/compiler/prelude/primops.txt.pp @@ -2403,7 +2403,6 @@ primop YieldOp "yield#" GenPrimOp primop MyThreadIdOp "myThreadId#" GenPrimOp State# RealWorld -> (# State# RealWorld, ThreadId# #) with - out_of_line = True has_side_effects = True primop LabelThreadOp "labelThread#" GenPrimOp |