
#14226: Common Block Elimination pass doesn't eliminate common blocks -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: closed Priority: high | Milestone: 8.4.1 Component: Compiler | Version: 8.2.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: #9157 | Differential Rev(s): Phab:D3973, Wiki Page: | Phab:D3999 -------------------------------------+------------------------------------- Comment (by bgamari): Indeed it's hard to say much without knowing with certainty that this is the code that CBE looks at. That being said, I believe that the CBE implementation should be able to deal with `CmmAssign`s of the form `x=x` since it compares the RHSs up to alpha equivalence. It would of course be good to check this, however. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14226#comment:18 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler