[Git][ghc/ghc][wip/test-sortkind] Add an inline pragma

Krzysztof Gogolewski (@monoidal) gitlab at gitlab.haskell.org
Wed Sep 27 12:19:48 UTC 2023



Krzysztof Gogolewski pushed to branch wip/test-sortkind at Glasgow Haskell Compiler / GHC


Commits:
cbb7abf7 by Krzysztof Gogolewski at 2023-09-27T12:31:06+02:00
Add an inline pragma

- - - - -


1 changed file:

- compiler/GHC/Core/Type.hs


Changes:

=====================================
compiler/GHC/Core/Type.hs
=====================================
@@ -641,6 +641,7 @@ kindRep_maybe :: HasDebugCallStack => Kind -> Maybe RuntimeRepType
 kindRep_maybe kind
   | KnownSort _ rep <- sORTKind_maybe kind = Just rep
   | otherwise                              = Nothing
+{-# INLINE kindRep_maybe #-}
 
 -- | Returns True if the argument is (lifted) Type or Constraint
 -- See Note [TYPE and CONSTRAINT] in GHC.Builtin.Types.Prim
@@ -781,6 +782,7 @@ splitRuntimeRep_maybe rep
   = Just (rr_tc, args)
   | otherwise
   = Nothing
+{-# INLINE splitRuntimeRep_maybe #-}
 
 -- | See 'isBoxedRuntimeRep_maybe'.
 isBoxedRuntimeRep :: RuntimeRepType -> Bool



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/cbb7abf74f81d178824370a3e776d71d9fd7ed3a

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/cbb7abf74f81d178824370a3e776d71d9fd7ed3a
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230927/71c5dd8e/attachment-0001.html>


More information about the ghc-commits mailing list