dterei/ghc — pull request #3 by scpmw (2013-07-04 16:31:11+00:00)
Title: LLVM refactoring fixes

This is three relatively straightforward fixes for bugs that crept in during refactoring.

The most interesting one is the fix for the compilation failure Geoffrey Mainland pointed out. Basically, what happens is that when compiling unoptimized code for dynamic linking, the aliases prevent LLVM from specifying the proper relocation method. The way I solve this here is by forcing the optimization pass turning eliminating aliases to run. After all, we already have a similar problem with "mem2reg".

Thanks,
Peter Wortmann