[llvm-commits] [dragonegg] r149694 - /dragonegg/trunk/src/Backend.cpp
Duncan Sands
baldrick at free.fr
Fri Feb 3 07:27:07 PST 2012
Author: baldrick
Date: Fri Feb 3 09:27:07 2012
New Revision: 149694
URL: http://llvm.org/viewvc/llvm-project?rev=149694&view=rev
Log:
Make it possible for people to play with the experimental LLVM vectorizer
by passing -fplugin-arg-dragonegg-llvm-option=-vectorize
Modified:
dragonegg/trunk/src/Backend.cpp
Modified: dragonegg/trunk/src/Backend.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Backend.cpp?rev=149694&r1=149693&r2=149694&view=diff
==============================================================================
--- dragonegg/trunk/src/Backend.cpp (original)
+++ dragonegg/trunk/src/Backend.cpp Fri Feb 3 09:27:07 2012
@@ -568,6 +568,10 @@
PassBuilder.DisableSimplifyLibCalls = flag_no_simplify_libcalls;
PassBuilder.DisableUnrollLoops = !flag_unroll_loops;
PassBuilder.DisableUnitAtATime = !flag_unit_at_a_time;
+ // FIXME: Hack around the fact the we initialize PassBuilder before processing
+ // command line arguments. The following makes it possible to enable the LLVM
+ // vectorizer using -fplugin-arg-dragonegg-llvm-option=-vectorize
+ PassBuilder.Vectorize = PassManagerBuilder().Vectorize;
PassBuilder.LibraryInfo =
new TargetLibraryInfo((Triple)TheModule->getTargetTriple());
More information about the llvm-commits
mailing list