]> granicus.if.org Git - clang/commitdiff
Enable the loop vectorizer in clang via -fvectorize
authorNadav Rotem <nrotem@apple.com>
Tue, 18 Dec 2012 23:10:16 +0000 (23:10 +0000)
committerNadav Rotem <nrotem@apple.com>
Tue, 18 Dec 2012 23:10:16 +0000 (23:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170472 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index eec3974c8dcbbb7a0c8220279d777d955a9f3b8a..60abb1579d97baf1ab507a16927b99653049075e 100644 (file)
@@ -2944,9 +2944,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
                    false))
     CmdArgs.push_back("-fasm-blocks");
 
-  // -fno-vectorize is default.
+  // -fvectorize is default.
   if (Args.hasFlag(options::OPT_fvectorize,
-                   options::OPT_fno_vectorize, false)) {
+                   options::OPT_fno_vectorize, true)) {
     CmdArgs.push_back("-backend-option");
     CmdArgs.push_back("-vectorize-loops");
   }