From: simonmar Date: Fri, 17 Sep 2004 08:25:25 +0000 (+0000) Subject: [project @ 2004-09-17 08:25:25 by simonmar] X-Git-Tag: Initial_conversion_from_CVS_complete~1591 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=9eb6cb808766126461564120923eb5d983221843;hp=1f6224200642990516e6c8c72b819e11424a3782;p=ghc-hetmet.git [project @ 2004-09-17 08:25:25 by simonmar] Remove debugging trace that I left in when working on mk_switch. --- diff --git a/ghc/compiler/codeGen/CgUtils.hs b/ghc/compiler/codeGen/CgUtils.hs index fce9023..9727fec 100644 --- a/ghc/compiler/codeGen/CgUtils.hs +++ b/ghc/compiler/codeGen/CgUtils.hs @@ -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