llvm.org GIT mirror llvm / 98e9ba6
Merging r279369 and update the test: ------------------------------------------------------------------------ r279369 | mssimpso | 2016-08-20 07:10:06 -0700 (Sat, 20 Aug 2016) | 1 line [SLP] Add command line option for minimum tree size (NFC) ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_39@279474 91177308-0d34-0410-b5e6-96231b3b80d8 Hans Wennborg 4 years ago
2 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
8585 "slp-recursion-max-depth", cl::init(12), cl::Hidden,
8686 cl::desc("Limit the recursion depth when building a vectorizable tree"));
8787
88 static cl::opt MinTreeSize(
89 "slp-min-tree-size", cl::init(3), cl::Hidden,
90 cl::desc("Only vectorize small trees if they are fully vectorizable"));
91
8892 // Limit the number of alias checks. The limit is chosen so that
8993 // it has no negative effect on the llvm benchmarks.
9094 static const unsigned AliasedCheckLimit = 10;
18421846 VectorizableTree.size() << ".\n");
18431847
18441848 // We only vectorize tiny trees if it is fully vectorizable.
1845 if (VectorizableTree.size() < 3 && !isFullyVectorizableTinyTree()) {
1849 if (VectorizableTree.size() < MinTreeSize && !isFullyVectorizableTinyTree()) {
18461850 if (VectorizableTree.empty()) {
18471851 assert(!ExternalUses.size() && "We should not have any external users");
18481852 }
0 ; RUN: opt < %s -slp-vectorizer -S | FileCheck %s --check-prefix=DEFAULT
1 ; RUN: opt < %s -slp-recursion-max-depth=0 -slp-vectorizer -S | FileCheck %s --check-prefix=GATHER
1 ; RUN: opt < %s -slp-schedule-budget=0 -slp-min-tree-size=0 -slp-threshold=-30 -slp-vectorizer -S | FileCheck %s --check-prefix=GATHER
22
33 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
44 target triple = "aarch64--linux-gnu"