diff options
author | Hongbin Zheng <etherzhhb@gmail.com> | 2012-05-06 10:22:19 +0000 |
---|---|---|
committer | Hongbin Zheng <etherzhhb@gmail.com> | 2012-05-06 10:22:19 +0000 |
commit | 6879421727d7477d9e369e6b5375e70fdc481157 (patch) | |
tree | fe455bb71e4a1daf92e091f7728350ef4d8da37d /polly/lib/CodeGen/CodeGeneration.cpp | |
parent | 6fa871991389f96d355a2512f39f4d1197b02b47 (diff) | |
download | bcm5719-llvm-6879421727d7477d9e369e6b5375e70fdc481157.tar.gz bcm5719-llvm-6879421727d7477d9e369e6b5375e70fdc481157.zip |
Allow polly ask bb-vectorizer to vectorize the loop body.
llvm-svn: 156254
Diffstat (limited to 'polly/lib/CodeGen/CodeGeneration.cpp')
-rw-r--r-- | polly/lib/CodeGen/CodeGeneration.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp index 4f46c9580a1..72a6c828ad6 100644 --- a/polly/lib/CodeGen/CodeGeneration.cpp +++ b/polly/lib/CodeGen/CodeGeneration.cpp @@ -57,14 +57,6 @@ using namespace llvm; struct isl_set; namespace polly { - -bool EnablePollyVector; - -static cl::opt<bool, true> -Vector("enable-polly-vector", - cl::desc("Enable polly vector code generation"), cl::Hidden, - cl::location(EnablePollyVector), cl::init(false), cl::ZeroOrMore); - static cl::opt<bool> OpenMP("enable-polly-openmp", cl::desc("Generate OpenMP parallel code"), cl::Hidden, @@ -616,6 +608,7 @@ void ClastStmtCodeGen::codegenForVector(const clast_for *F) { } void ClastStmtCodeGen::codegen(const clast_for *f) { + bool Vector = PollyVectorizerChoice != VECTORIZER_NONE; if ((Vector || OpenMP) && P->getAnalysis<Dependences>().isParallelFor(f)) { if (Vector && isInnermostLoop(f) && (-1 != getNumberOfIterations(f)) && (getNumberOfIterations(f) <= 16)) { |