forked from OSchip/llvm-project
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:
parent
1b752aab3f
commit
2873645c51
|
@ -22,7 +22,6 @@ enum VectorizerChoice {
|
|||
VECTORIZER_NONE,
|
||||
VECTORIZER_STRIPMINE,
|
||||
VECTORIZER_POLLY,
|
||||
VECTORIZER_UNROLL_ONLY
|
||||
};
|
||||
extern VectorizerChoice PollyVectorizerChoice;
|
||||
|
||||
|
|
|
@ -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]);
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue