Drop -polly-vectorizer-unroll-only option

This options was earlier used for experiments with the vectorizer, but to my
knowledge is not really used anymore. If anybody needs this, we can always
reintroduce this feature.

llvm-svn: 232934
This commit is contained in:
Tobias Grosser 2015-03-23 07:00:36 +00:00
parent 1b752aab3f
commit 2873645c51
4 changed files with 1 additions and 6 deletions

View File

@ -22,7 +22,6 @@ enum VectorizerChoice {
VECTORIZER_NONE,
VECTORIZER_STRIPMINE,
VECTORIZER_POLLY,
VECTORIZER_UNROLL_ONLY
};
extern VectorizerChoice PollyVectorizerChoice;

View File

@ -451,8 +451,7 @@ Value *VectorBlockGenerator::generateUnknownStrideLoad(
void VectorBlockGenerator::generateLoad(ScopStmt &Stmt, const LoadInst *Load,
ValueMapT &VectorMap,
VectorValueMapT &ScalarMaps) {
if (PollyVectorizerChoice == VECTORIZER_UNROLL_ONLY ||
!VectorType::isValidElementType(Load->getType())) {
if (!VectorType::isValidElementType(Load->getType())) {
for (int i = 0; i < getVectorWidth(); i++)
ScalarMaps[i][Load] =
generateScalarLoad(Stmt, Load, ScalarMaps[i], GlobalMaps[i], VLTS[i]);

View File

@ -82,8 +82,6 @@ static cl::opt<polly::VectorizerChoice, true> Vectorizer(
"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));

View File

@ -1,5 +1,4 @@
; RUN: opt %loadPolly -polly-detect-unprofitable -polly-codegen-isl -polly-vectorizer=polly < %s
; RUN: opt %loadPolly -polly-detect-unprofitable -polly-codegen-isl -polly-vectorizer=unroll-only < %s
; This test case checks that the polly vectorizer does not crash when
; calculating the number of iterations.