Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
9eb6cb80
Commit
9eb6cb80
authored
Sep 17, 2004
by
simonmar
Browse files
[project @ 2004-09-17 08:25:25 by simonmar]
Remove debugging trace that I left in when working on mk_switch.
parent
1f622420
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/codeGen/CgUtils.hs
View file @
9eb6cb80
...
...
@@ -439,9 +439,9 @@ mk_switch tag_expr branches mb_deflt lo_tag hi_tag
}
where
use_switch
=
ASSERT
(
n_branches
>
1
&&
n_tags
>
1
)
pprTrace
"mk_switch"
(
ppr
tag_expr
<+>
text
"n_tags: "
{-
pprTrace "mk_switch" (ppr tag_expr <+> text "n_tags: "
<+> int n_tags <+> text "dense: "
<+>
int
n_branches
)
$
<+> int n_branches) $
-}
n_tags
>
2
&&
(
small
||
dense
)
-- a 2-branch switch always turns into an if.
small
=
n_tags
<=
4
...
...
Write
Preview
Markdown
is supported
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