projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b506bbf
)
[project @ 2001-03-23 14:52:30 by simonpj]
author
simonpj
<unknown>
Fri, 23 Mar 2001 14:52:30 +0000
(14:52 +0000)
committer
simonpj
<unknown>
Fri, 23 Mar 2001 14:52:30 +0000
(14:52 +0000)
Add comment
ghc/compiler/simplCore/CSE.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/simplCore/CSE.lhs
b/ghc/compiler/simplCore/CSE.lhs
index
66038f3
..
041fdfb
100644
(file)
--- a/
ghc/compiler/simplCore/CSE.lhs
+++ b/
ghc/compiler/simplCore/CSE.lhs
@@
-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
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
extendCSEnv (CS cs in_scope sub) id expr
= CS (addToUFM_C combine cs hash [(id, expr)]) in_scope sub