From 0f6ef2879083d3c556b9b74d2df7a07dc0b227d5 Mon Sep 17 00:00:00 2001 From: Nadav Rotem Date: Tue, 18 Dec 2012 23:10:16 +0000 Subject: [PATCH] Enable the loop vectorizer in clang via -fvectorize git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170472 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/Tools.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index eec3974c8d..60abb1579d 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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"); } -- 2.40.0