Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
522c8ebe
Commit
522c8ebe
authored
Oct 05, 2006
by
simonpj@microsoft.com
Browse files
Comments and layout
parent
b6cc5851
Changes
2
Hide whitespace changes
Inline
Side-by-side
compiler/coreSyn/CoreUtils.lhs
View file @
522c8ebe
...
...
@@ -633,15 +633,15 @@ exprIsHNF (Var v) -- NB: There are no value args at this point
-- A worry: what if an Id's unfolding is just itself:
-- then we could get an infinite loop...
exprIsHNF (Lit l)
= True
exprIsHNF (Type ty)
= True -- Types are honorary Values;
-- we don't mind copying them
exprIsHNF (Lam b e)
= isRuntimeVar b || exprIsHNF e
exprIsHNF (Note _ e)
= exprIsHNF e
exprIsHNF (Cast e co)
= exprIsHNF e
exprIsHNF (Lit l) = True
exprIsHNF (Type ty) = True -- Types are honorary Values;
-- we don't mind copying them
exprIsHNF (Lam b e) = isRuntimeVar b || exprIsHNF e
exprIsHNF (Note _ e) = exprIsHNF e
exprIsHNF (Cast e co) = exprIsHNF e
exprIsHNF (App e (Type _)) = exprIsHNF e
exprIsHNF (App e a) = app_is_value e [a]
exprIsHNF other = False
exprIsHNF other
= False
-- There is at least one value argument
app_is_value (Var fun) args
...
...
@@ -1240,6 +1240,7 @@ exprIsBig (Lit _) = False
exprIsBig (Var v) = False
exprIsBig (Type t) = False
exprIsBig (App f a) = exprIsBig f || exprIsBig a
exprIsBig (Cast e _) = exprIsBig e -- Hopefully coercions are not too big!
exprIsBig other = True
\end{code}
...
...
compiler/simplCore/Simplify.lhs
View file @
522c8ebe
...
...
@@ -370,7 +370,6 @@ completeNonRecX env is_strict old_bndr new_bndr new_rhs thing_inside
| otherwise
= -- Make the arguments atomic if necessary,
-- adding suitable bindings
-- pprTrace "completeNonRecX" (ppr new_bndr <+> ppr new_rhs) $
mkAtomicArgsE env is_strict new_rhs $ \ env new_rhs ->
completeLazyBind env NotTopLevel
old_bndr new_bndr new_rhs `thenSmpl` \ (floats, env) ->
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment