[GHC] #11717: Way to dump cmm only once
#11717: Way to dump cmm only once -------------------------------------+------------------------------------- Reporter: nomeata | Owner: Type: feature | Status: new request | Priority: normal | Milestone: Component: Compiler | Version: 8.1 (CodeGen) | Keywords: newcomer | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- The current way to dump Cmm output is `-ddump-cmm`, but that dumps Cmm repeatedly, of every stage, similar to `-ddump-verbose-core2core`. This is often confusing. I propose that `-ddump-cmm` dumps only the initial Cmm code, that the flag `-ddump-simpl-cmm` dumps the final Cmm code, and that `-ddump-verbose-cmm` dumps every stage. Shoudn’t be hard to do for a newcomer. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11717> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11717: Way to dump cmm only once -------------------------------------+------------------------------------- Reporter: nomeata | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 (CodeGen) | Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by nomeata): Also note that there currently seems to be a {{{ -ddump-opt-cmm Dump the results of C-- to C-- optimising passes }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11717#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11717: Way to dump cmm only once -------------------------------------+------------------------------------- Reporter: nomeata | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 (CodeGen) | Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by osa1): +1 I'm hoping to implement this soon. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11717#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11717: Way to dump cmm only once -------------------------------------+------------------------------------- Reporter: nomeata | Owner: tvv Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 (CodeGen) | Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by tvv): * owner: => tvv -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11717#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11717: Way to dump cmm only once -------------------------------------+------------------------------------- Reporter: nomeata | Owner: tvv Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 (CodeGen) | Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2393 Wiki Page: | -------------------------------------+------------------------------------- Changes (by tvv): * differential: => Phab:D2393 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11717#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11717: Way to dump cmm only once -------------------------------------+------------------------------------- Reporter: nomeata | Owner: tvv Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 (CodeGen) | Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2393 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"1ba79fa4d0e13e61a805fa458bcf2e690710d88b/ghc" 1ba79fa/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="1ba79fa4d0e13e61a805fa458bcf2e690710d88b" CodeGen: Way to dump cmm only once (#11717) The `-ddump-cmm` put all stages of Cmm processing into one output. This patch changes its behavior and adds two more options to make Cmm dumping flexible. - `-ddump-cmm-from-stg` dumps only initial version of Cmm right after STG->Cmm codegen - `-ddump-cmm` dumps the final result of the Cmm pipeline processing - `-ddump-cmm-verbose` dumps intermediate output of each Cmm pipeline step - `-ddump-cmm-proc` and `-ddump-cmm-caf` seems were lost. Now enabled Test Plan: ./validate Reviewers: thomie, simonmar, austin, bgamari Reviewed By: thomie, simonmar Subscribers: simonpj, thomie Differential Revision: https://phabricator.haskell.org/D2393 GHC Trac Issues: #11717 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11717#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11717: Way to dump cmm only once -------------------------------------+------------------------------------- Reporter: nomeata | Owner: tvv Type: feature request | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.1 (CodeGen) | Resolution: fixed | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2393 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => closed * resolution: => fixed * milestone: => 8.2.1 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11717#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC