summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1f62242)
Remove debugging trace that I left in when working on mk_switch.
}
where
use_switch = ASSERT( n_branches > 1 && n_tags > 1 )
}
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_tags <+> text "dense: "
+ <+> int n_branches) $ -}
n_tags > 2 && (small || dense)
-- a 2-branch switch always turns into an if.
small = n_tags <= 4
n_tags > 2 && (small || dense)
-- a 2-branch switch always turns into an if.
small = n_tags <= 4