diff options
author | Nadav Rotem <nrotem@apple.com> | 2013-04-15 05:38:41 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2013-04-15 05:38:41 +0000 |
commit | 3c6a9b052373f656268557904d229a8ad8b7686f (patch) | |
tree | 47f2541bd36b1f94a5831ef063052e741acbbfde /lib/Driver/Tools.cpp | |
parent | 50ea96332b5dae54cc724f924b343084cb9ea834 (diff) |
Add a new flag -vectorize-slp-aggressive to enable Hals BB vectorizer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 219da03f09..2cb9d6f09e 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -3233,6 +3233,13 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, CmdArgs.push_back("-vectorize-slp"); } + // -fno-slp-vectorize-aggressive is default. + if (Args.hasFlag(options::OPT_fslp_vectorize_aggressive, + options::OPT_fno_slp_vectorize_aggressive, false)) { + CmdArgs.push_back("-backend-option"); + CmdArgs.push_back("-vectorize-slp-aggressive"); + } + if (Arg *A = Args.getLastArg(options::OPT_fshow_overloads_EQ)) A->render(Args, CmdArgs); |