diff options
| -rw-r--r-- | polly/include/polly/CodeGen/CodeGeneration.h | 1 | ||||
| -rw-r--r-- | polly/lib/Support/RegisterPasses.cpp | 15 | ||||
| -rw-r--r-- | polly/test/ScheduleOptimizer/prevectorization.ll | 1 |
3 files changed, 11 insertions, 6 deletions
diff --git a/polly/include/polly/CodeGen/CodeGeneration.h b/polly/include/polly/CodeGen/CodeGeneration.h index 4154052c7de..a4b8712fe76 100644 --- a/polly/include/polly/CodeGen/CodeGeneration.h +++ b/polly/include/polly/CodeGen/CodeGeneration.h @@ -20,6 +20,7 @@ namespace polly { enum VectorizerChoice { VECTORIZER_NONE, + VECTORIZER_STRIPMINE, VECTORIZER_POLLY, VECTORIZER_UNROLL_ONLY }; diff --git a/polly/lib/Support/RegisterPasses.cpp b/polly/lib/Support/RegisterPasses.cpp index ca2f4d81ed0..c0d2687847a 100644 --- a/polly/lib/Support/RegisterPasses.cpp +++ b/polly/lib/Support/RegisterPasses.cpp @@ -76,12 +76,15 @@ static cl::opt<CodeGenChoice, true> XCodeGenerator( VectorizerChoice polly::PollyVectorizerChoice; static cl::opt<polly::VectorizerChoice, true> Vectorizer( "polly-vectorizer", cl::desc("Select the vectorization strategy"), - cl::values(clEnumValN(polly::VECTORIZER_NONE, "none", "No Vectorization"), - clEnumValN(polly::VECTORIZER_POLLY, "polly", - "Polly internal vectorizer"), - clEnumValN(polly::VECTORIZER_UNROLL_ONLY, "unroll-only", - "Only grouped unroll the vectorize candidate loops"), - clEnumValEnd), + cl::values( + clEnumValN(polly::VECTORIZER_NONE, "none", "No Vectorization"), + clEnumValN(polly::VECTORIZER_POLLY, "polly", + "Polly internal vectorizer"), + clEnumValN(polly::VECTORIZER_STRIPMINE, "stripmine", + "Strip-mine outer loops for the loop-vectorizer to trigger"), + clEnumValN(polly::VECTORIZER_UNROLL_ONLY, "unroll-only", + "Only grouped unroll the vectorize candidate loops"), + clEnumValEnd), cl::location(PollyVectorizerChoice), cl::init(polly::VECTORIZER_NONE), cl::ZeroOrMore, cl::cat(PollyCategory)); diff --git a/polly/test/ScheduleOptimizer/prevectorization.ll b/polly/test/ScheduleOptimizer/prevectorization.ll index 412410cf306..887652ef7f6 100644 --- a/polly/test/ScheduleOptimizer/prevectorization.ll +++ b/polly/test/ScheduleOptimizer/prevectorization.ll @@ -1,4 +1,5 @@ ; RUN: opt -S %loadPolly -polly-detect-unprofitable -basicaa -polly-opt-isl -polly-vectorizer=polly -polly-ast -analyze < %s | FileCheck %s +; RUN: opt -S %loadPolly -polly-detect-unprofitable -basicaa -polly-opt-isl -polly-vectorizer=stripmine -polly-ast -analyze < %s | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" |

