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

git at git.haskell.org git at git.haskell.org
Sat Nov 25 09:14:57 UTC 2017


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

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

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

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

    Adds +bmi/bmi2 as needed.


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

ab654c625381bcdb2faca264e5dabe9557b2c6ac
 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