summaryrefslogtreecommitdiff
path: root/rts/Updates.cmm
diff options
context:
space:
mode:
authorklebinger.andreas@gmx.at <klebinger.andreas@gmx.at>2018-01-29 18:25:00 -0500
committerBen Gamari <ben@smart-cactus.org>2018-01-29 18:25:00 -0500
commit1205629228064537545a0be9c2e9a995aa2dcd03 (patch)
tree58b17898f7ac63f140bc6fb25ef68e94681ff763 /rts/Updates.cmm
parent96d2eb27eb86540796944253ce47b2bcd6a2df1c (diff)
downloadhaskell-1205629228064537545a0be9c2e9a995aa2dcd03.tar.gz
Add likely annotation to cmm files in a few obvious places.
Provide information about paths more likely to be taken in the cmm files used by the rts. This leads to slightly better assembly being generated. Reviewers: bgamari, erikd, simonmar Subscribers: alexbiehl, rwbarton, thomie, carter GHC Trac Issues: #14672 Differential Revision: https://phabricator.haskell.org/D4324
Diffstat (limited to 'rts/Updates.cmm')
-rw-r--r--rts/Updates.cmm4
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/Updates.cmm b/rts/Updates.cmm
index b3b6b20ef3..9d00fb8efb 100644
--- a/rts/Updates.cmm
+++ b/rts/Updates.cmm
@@ -54,7 +54,7 @@ INFO_TABLE_RET ( stg_marked_upd_frame, UPDATE_FRAME,
// we know the closure is a BLACKHOLE
v = StgInd_indirectee(updatee);
- if (GETTAG(v) != 0) {
+ if (GETTAG(v) != 0) (likely: False) {
// updated by someone else: discard our value and use the
// other one to increase sharing, but check the blocking
// queues to see if any threads were waiting on this BLACKHOLE.
@@ -63,7 +63,7 @@ INFO_TABLE_RET ( stg_marked_upd_frame, UPDATE_FRAME,
}
// common case: it is still our BLACKHOLE
- if (v == CurrentTSO) {
+ if (v == CurrentTSO) (likely: True) {
updateWithIndirection(updatee, ret, return (ret));
}