[commit: ghc] master: includes/Stg.h: remove unused 'wcStore' inline (e81e028)

git at git.haskell.org git at git.haskell.org
Mon Sep 1 18:15:41 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/e81e02807c7a0e723ed7b0e83418c95f99140449/ghc

>---------------------------------------------------------------

commit e81e02807c7a0e723ed7b0e83418c95f99140449
Author: Sergei Trofimovich <slyfox at gentoo.org>
Date:   Mon Sep 1 21:15:21 2014 +0300

    includes/Stg.h: remove unused 'wcStore' inline
    
    Summary:
    Commit reverts never used addition in cbd29e0a23bb8e15033edae123d6c8fbe9740c97
    
    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: Sergei Trofimovich <slyfox at 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


>---------------------------------------------------------------

e81e02807c7a0e723ed7b0e83418c95f99140449
 includes/Stg.h | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/includes/Stg.h b/includes/Stg.h
index 8b3a3fc..4c26e3e 100644
--- a/includes/Stg.h
+++ b/includes/Stg.h
@@ -477,24 +477,6 @@ INLINE_HEADER StgInt64 PK_Int64(W_ p_src[])
 #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
    -------------------------------------------------------------------------- */
 



More information about the ghc-commits mailing list