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)
llvm-svn: 170472

clang/lib/Driver/Tools.cpp

index eec3974..60abb15 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");
   }