#3703: -ddump-rules does not list all rules in effect
-------------------------------+--------------------------------------------
    Reporter:  nomeata         |       Owner:              
        Type:  bug             |      Status:  new         
    Priority:  normal          |   Milestone:              
   Component:  Compiler        |     Version:  6.10.4      
  Resolution:                  |    Keywords:              
          Os:  Linux           |    Testcase:              
Architecture:  x86_64 (amd64)  |     Failure:  None/Unknown
-------------------------------+--------------------------------------------
Comment (by nomeata):

 Cale on IRC told me about "-ddump-simple-stats", which does list the rule
 in question:
 {{{
 $ ghc -O  -ddump-simpl-stats --make breakOn.hs
 [1 of 1] Compiling Main             ( breakOn.hs, breakOn.o )

 ==================== FloatOut stats: ====================
 0 Lets floated to top level; 0 Lets floated elsewhere; from 0 Lambda
 groups



 ==================== FloatOut stats: ====================
 4 Lets floated to top level; 0 Lets floated elsewhere; from 1 Lambda
 groups



 ==================== Grand total simplifier statistics
 ====================
 Total ticks:     1147

 223 PreInlineUnconditionally
 305 PostInlineUnconditionally
 131 UnfoldingDone
 15 RuleFired
     2 0# +# x#
     2 ByteString pack/packAddress
     1 ByteString specialise break (x==)
     2 int2Word#
     2 int2Word2Int
     2 narrow8Word#
     2 ord#
     2 word2Int#
 39 LetFloatFromLet
 1 EtaReduction
 340 BetaReduction
 93 KnownBranch
 11 SimplifierDone


 Linking breakOn ...
 }}}

 I guess I mis-understnad the meaning of -ddump-rules. Either close this
 bug, or keep it open as a reminder to extend the documentation of "-ddump-
 rules" in "man ghc" a bit.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3703#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to