[cfe-commits] r170472 - /cfe/trunk/lib/Driver/Tools.cpp
Nadav Rotem
nrotem at apple.com
Tue Dec 18 15:10:16 PST 2012
Author: nadav
Date: Tue Dec 18 17:10:16 2012
New Revision: 170472
URL: http://llvm.org/viewvc/llvm-project?rev=170472&view=rev
Log:
Enable the loop vectorizer in clang via -fvectorize
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=170472&r1=170471&r2=170472&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Tue Dec 18 17:10:16 2012
@@ -2944,9 +2944,9 @@
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");
}
More information about the cfe-commits
mailing list