summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2019-03-28 17:18:42 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2019-03-28 17:18:42 +0000
commitba2ea93ad189d8a1e87e0e02b20790272b7ed375 (patch)
tree0efbc31b5383736aa1d8f4c46217b34c61dd1f13 /llvm/lib/Transforms/Vectorize
parent4180a7cd831537567c9c9eb8528365e3958aed6b (diff)
downloadbcm5719-llvm-ba2ea93ad189d8a1e87e0e02b20790272b7ed375.tar.gz
bcm5719-llvm-ba2ea93ad189d8a1e87e0e02b20790272b7ed375.zip
Make helper functions static. NFC.
llvm-svn: 357187
Diffstat (limited to 'llvm/lib/Transforms/Vectorize')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index c59743c9ff9..145176670ea 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -6080,8 +6080,8 @@ void LoopVectorizationCostModel::collectValuesToIgnore() {
// `buildVPlans(VF, VF)`. We cannot do it because VPLAN at the moment
// doesn't have a cost model that can choose which plan to execute if
// more than one is generated.
-unsigned determineVPlanVF(const unsigned WidestVectorRegBits,
- LoopVectorizationCostModel &CM) {
+static unsigned determineVPlanVF(const unsigned WidestVectorRegBits,
+ LoopVectorizationCostModel &CM) {
unsigned WidestType;
std::tie(std::ignore, WidestType) = CM.getSmallestAndWidestTypes();
return WidestVectorRegBits / WidestType;
OpenPOWER on IntegriCloud