[commit: ghc] wip/angerman/llvmng: Adds +bmi/bmi2 as needed. (39f7fc8)

git at git.haskell.org git at git.haskell.org
Tue Nov 21 02:15:31 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/angerman/llvmng
Link       : http://ghc.haskell.org/trac/ghc/changeset/39f7fc86bb0a4cbf0476f98819d597c0a00d1210/ghc

>---------------------------------------------------------------

commit 39f7fc86bb0a4cbf0476f98819d597c0a00d1210
Author: Moritz Angermann <moritz.angermann at gmail.com>
Date:   Tue Nov 21 10:15:06 2017 +0800

    Adds +bmi/bmi2 as needed.


>---------------------------------------------------------------

39f7fc86bb0a4cbf0476f98819d597c0a00d1210
 compiler/main/DriverPipeline.hs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline.hs
index 269017c..180f362 100644
--- a/compiler/main/DriverPipeline.hs
+++ b/compiler/main/DriverPipeline.hs
@@ -848,6 +848,8 @@ llvmOptions dflags =
               ++ ["+avx512cd"| isAvx512cdEnabled dflags ]
               ++ ["+avx512er"| isAvx512erEnabled dflags ]
               ++ ["+avx512pf"| isAvx512pfEnabled dflags ]
+              ++ ["+bmi"     | isBmiEnabled dflags      ]
+              ++ ["+bmi2"    | isBmi2Enabled dflags     ]
 
 -- -----------------------------------------------------------------------------
 -- | Each phase in the pipeline returns the next phase to execute, and the



More information about the ghc-commits mailing list