Disable AVX for LLVM 3.2 by default (#9391)
authorPeter Wortmann <scpmw@leeds.ac.uk>
Tue, 18 Nov 2014 18:33:05 +0000 (12:33 -0600)
committerAustin Seipp <austin@well-typed.com>
Tue, 18 Nov 2014 18:33:05 +0000 (12:33 -0600)
commitc557f991a9fa6f6afad4850e4f5db6a08fa1cb6c
tree46fe432cceeb284cc50de9725d827d3fe0f2c4c4
parent21f9bc434c12e928005d59c494e4f48c242b0613
Disable AVX for LLVM 3.2 by default (#9391)

Due to a bug LLVM generates a C-like frame pointer prelude for functions
that use AVX instructions. This causes programs using the GHC calling
convention to crash, therefore we simply disable them. People that want
to use AVX should consider upgrading to a more current LLVM version.

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