summaryrefslogtreecommitdiff
path: root/compiler/simplCore
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2016-08-05 20:58:02 +0000
committerÖmer Sinan Ağacan <omeragacan@gmail.com>2016-08-05 20:58:02 +0000
commit02614fd61f57b599c5e4fd5e85f00a4e1ce37bc7 (patch)
tree76468eb85d00298e5af9f20f572ed21da0e037fe /compiler/simplCore
parent7354f93c8158b699c7fc1e7592e5826c1b9a22d9 (diff)
downloadhaskell-02614fd61f57b599c5e4fd5e85f00a4e1ce37bc7.tar.gz
Replace some `length . filter` with `count`
Diffstat (limited to 'compiler/simplCore')
-rw-r--r--compiler/simplCore/SAT.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/simplCore/SAT.hs b/compiler/simplCore/SAT.hs
index 38ae1444f1..923d3a4209 100644
--- a/compiler/simplCore/SAT.hs
+++ b/compiler/simplCore/SAT.hs
@@ -373,7 +373,7 @@ saTransformMaybe binder maybe_arg_staticness rhs_binders rhs_body
where
should_transform staticness = n_static_args > 1 -- THIS IS THE DECISION POINT
where
- n_static_args = length (filter isStaticValue staticness)
+ n_static_args = count isStaticValue staticness
saTransform :: Id -> SATInfo -> [Id] -> CoreExpr -> SatM CoreBind
saTransform binder arg_staticness rhs_binders rhs_body