• Erik de Castro Lopo's avatar
    LlvmCodeGen: Fix generation of malformed LLVM blocks · 92821ec9
    Erik de Castro Lopo authored
    Commit 673efccb uncovered a bug in LLVM code generation that produced
    LLVM code that the LLVM compiler refused to compile:
          br label %clpH
    This may well be a bug in LLVM itself. The solution is to keep the
    existing entry label and rewrite the function as:
          br label %nPV
          br label %nPV
    Thanks to Ben Gamari for pointing me in the right direction on this
    Test Plan: Build GHC with BuildFlavour=quick-llvm
    Reviewers: hvr, austin, bgamari
    Reviewed By: bgamari
    Subscribers: thomie
    Differential Revision: https://phabricator.haskell.org/D1996
    GHC Trac Issues: #11649
LlvmCodeGen.hs 7.04 KB