
#12915: cmmImplementSwitchPlans creates duplicate blocks -------------------------------------+------------------------------------- Reporter: alexbiehl | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: 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): `cmmImplementSwitchPlans` is run after `elimCommonBlocks` in order to avoid making unnecessary decisions in the branching code if the blocks happen to be the same ones any ways. I was not aware that `cmmImplementSwitchPlans` itself could make new blocks that are identical. In your examples, what happend to the assignments ` _sfh6::I64 = I64[_sfh3::P64 + 7];`? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12915#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler