OSDN Git Service

Make helper functions static. NFC.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 28 Mar 2019 17:18:42 +0000 (17:18 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 28 Mar 2019 17:18:42 +0000 (17:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357187 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/LoopVectorize.cpp

index c59743c..1451766 100644 (file)
@@ -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;