Commit e81e0280 authored by Sergei Trofimovich's avatar Sergei Trofimovich

includes/Stg.h: remove unused 'wcStore' inline

Summary:
Commit reverts never used addition in cbd29e0a

I think it might make sense to take advantage of TSO/RMO/PSO models
tome day. But it's highly architecture/model-dependent thus it better
be implemented in per-arch Native CodeGen.
Signed-off-by: default avatarSergei Trofimovich <slyfox@gentoo.org>

Test Plan: build-tested on UNREG-amd64

Reviewers: simonmar, austin

Reviewed By: austin

Subscribers: simonmar, ezyang, carter

Differential Revision: https://phabricator.haskell.org/D186
parent 01a27c9d
......@@ -476,24 +476,6 @@ INLINE_HEADER StgInt64 PK_Int64(W_ p_src[])
#define __STG_SPLIT_MARKER /* nothing */
#endif
/* -----------------------------------------------------------------------------
Write-combining store
-------------------------------------------------------------------------- */
INLINE_HEADER void
wcStore (StgPtr p, StgWord w)
{
#ifdef x86_64_HOST_ARCH
__asm__(
"movnti\t%1, %0"
: "=m" (*p)
: "r" (w)
);
#else
*p = w;
#endif
}
/* -----------------------------------------------------------------------------
Integer multiply with overflow
-------------------------------------------------------------------------- */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment