DriverPipeline: Ensure -globalopt is passed to LLVM opt
authorBen Gamari <bgamari.foss@gmail.com>
Thu, 6 Mar 2014 20:20:02 +0000 (21:20 +0100)
committerAustin Seipp <austin@well-typed.com>
Thu, 13 Mar 2014 22:56:36 +0000 (17:56 -0500)
commitb84b5da4430aacd5bf8422b06a861cd0584f99cf
tree48ce6e0fcaf2add3c6011af9d8d77851a40ce1eb
parentd574fcbba09fd6c9d10a79e19daf5f15bb0a6cde
DriverPipeline: Ensure -globalopt is passed to LLVM opt

While -O1 and -O2 both include -globalopt, the order in which the passes are
run means that aliases aren't resolved which then causes llc to fall over.
See GHC bug #8855.

Signed-off-by: Austin Seipp <austin@well-typed.com>
compiler/main/DriverPipeline.hs