[Git][ghc/ghc][wip/andreask/inlineable_eq_list] Try making compare inlineable for []
Andreas Klebinger
gitlab at gitlab.haskell.org
Sat Jul 11 00:20:10 UTC 2020
Andreas Klebinger pushed to branch wip/andreask/inlineable_eq_list at Glasgow Haskell Compiler / GHC
Commits:
6960060e by Andreas Klebinger at 2020-07-10T20:20:08-04:00
Try making compare inlineable for []
- - - - -
1 changed file:
- libraries/ghc-prim/GHC/Classes.hs
Changes:
=====================================
libraries/ghc-prim/GHC/Classes.hs
=====================================
@@ -400,6 +400,7 @@ instance (Ord a) => Ord [a] where
{-# SPECIALISE instance Ord [[Char]] #-}
{-# SPECIALISE instance Ord [Char] #-}
{-# SPECIALISE instance Ord [Int] #-}
+ {-# INLINEABLE compare #-}
compare [] [] = EQ
compare [] (_:_) = LT
compare (_:_) [] = GT
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6960060ed0900a50dccfe7c47e6da8308923be77
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6960060ed0900a50dccfe7c47e6da8308923be77
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/20200710/ba90482e/attachment.html>
More information about the ghc-commits
mailing list