[GHC] #8410: NCG sometimes produces code like `addl $0 ...`

#8410: NCG sometimes produces code like `addl $0 ...` ------------------------------------+------------------------------------- Reporter: schyler | 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: | ------------------------------------+------------------------------------- See the haskell and ASM output; https://gist.github.com/kvanberendonck/6837792 Search for `addl $0` in your browser and you'll see a couple occurrences. This is a useless instruction. It would be a minor optimization to not emit these. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8410 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8410: NCG sometimes produces code like `addl $0 ...` -------------------------------------+------------------------------------ Reporter: schyler | Owner: 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 rwbarton): * status: new => closed * resolution: => fixed Comment: This is fixed already in HEAD, hooray. (And for anyone planning to reproduce this, it only affected i386, not amd64, for this particular program.) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8410#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC