[GHC] #8973: Fewer CPSZ: lines with -dshow-passes

#8973: Fewer CPSZ: lines with -dshow-passes ------------------------------------+------------------------------------- Reporter: simonpj | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- `-dshow-passes` generates {{{ *** Stg2Stg: *** CodeOutput: *** New CodeGen: *** CPSZ: *** CPSZ: *** CPSZ: *** CPSZ: *** CPSZ: *** CPSZ: *** CPSZ: *** CPSZ: *** CPSZ: *** CPSZ: *** CPSZ: *** CPSZ: *** CPSZ: *** CPSZ: *** CPSZ: *** Assembler: }}} All those CPSZ things are not helping! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8973 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8973: Fewer CPSZ: lines with -dshow-passes -------------------------------------+------------------------------------ Reporter: simonpj | Owner: simonmar Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by simonpj): * owner: => simonmar -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8973#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8973: Fewer CPSZ: lines with -dshow-passes -------------------------------------+------------------------------------ Reporter: simonpj | Owner: simonmar Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by ezyang): The cause is we're running mapAccumL, calling the CPSZ pass on each `CmmGroup` in the stream. The obvious thing is to hoist the print out, but the tradeoff is now your debug output when you dump C-- no longer has demarcation markers: {{{ *** CPSZ: ==================== Post CPS Cmm ==================== ... ==================== Output Cmm ==================== ... ==================== Cmm produced by new codegen ==================== ... *** CPSZ: ==================== Post CPS Cmm ==================== ... ==================== Output Cmm ==================== ... ==================== Cmm produced by new codegen ==================== ... }}} Maybe we can do something more clever, or maybe it's OK to not have things partitioned up this way. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8973#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8973: Fewer CPSZ: lines with -dshow-passes
-------------------------------------+------------------------------------
Reporter: simonpj | Owner: simonmar
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.6.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Comment (by Simon Marlow

#8973: Fewer CPSZ: lines with -dshow-passes -------------------------------------+------------------------------------ Reporter: simonpj | Owner: simonmar Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by simonmar): * status: new => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8973#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC