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
Shayne Fletcher
Glasgow Haskell Compiler
Commits
0f418257
Commit
0f418257
authored
Mar 23, 2001
by
simonpj
Browse files
[project @ 2001-03-23 14:52:30 by simonpj]
Add comment
parent
b506bbfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/simplCore/CSE.lhs
View file @
0f418257
...
...
@@ -220,6 +220,8 @@ lookup_list ((x,e):es) expr | cheapEqExpr e expr = Just x
addCSEnvItem env id expr | exprIsBig expr = env
| otherwise = extendCSEnv env id expr
-- We don't try to CSE big expressions, because they are expensive to compare
-- (and are unlikely to be the same anyway)
extendCSEnv (CS cs in_scope sub) id expr
= CS (addToUFM_C combine cs hash [(id, expr)]) in_scope sub
...
...
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