
#14282: tagToEnum# . dataToTag# not optimized away -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: dfeuer Type: bug | Status: new Priority: normal | Milestone: 8.4.1 Component: Compiler | Version: 8.2.1 Resolution: | Keywords: datacon-tags 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 simonpj): * owner: (none) => dfeuer Comment: Yes, please do. In `PrelRules` I see that `dataToTagRule` has a rule for when the argument is `tagToEnum#`. It should be easy to do the same thing for `tagToEnumRule`. Low impact, but low cost. Thanks. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14282#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler