[GHC] #11649: LLVM code generator produces mal-formed LLVM blocks

GHC ghc-devs at haskell.org
Fri Feb 26 11:44:44 UTC 2016


#11649: LLVM code generator produces mal-formed LLVM blocks
-------------------------------------+-------------------------------------
        Reporter:  bgamari           |                Owner:
            Type:  bug               |               Status:  new
        Priority:  highest           |            Milestone:  8.0.1
       Component:  Compiler          |              Version:  8.0.1-rc2
  (CodeGen)                          |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  crash                              |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by bgamari):

 Indeed if you compile with the native code generator you'll find that
 compilation succeeds as expected, but the resulting executable loops when
 you attempt to evaluate `some U1`. I suspect overriding `some` and `many`
 is the right thing to do in this particular case.

 That being said, apart from the `Generics` issue, there is clearly an LLVM
 code generator issue as well: we shouldn't be passing code to LLVM that it
 can't compile.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11649#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list