Skip to content

Commit 7220ab8

Browse files
authored
[LV] Mark getMaxVScale static (NFC) (#130598)
1 parent 1d1b20a commit 7220ab8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2325,8 +2325,8 @@ emitTransformedIndex(IRBuilderBase &B, Value *Index, Value *StartValue,
23252325
llvm_unreachable("invalid enum");
23262326
}
23272327

2328-
std::optional<unsigned> getMaxVScale(const Function &F,
2329-
const TargetTransformInfo &TTI) {
2328+
static std::optional<unsigned> getMaxVScale(const Function &F,
2329+
const TargetTransformInfo &TTI) {
23302330
if (std::optional<unsigned> MaxVScale = TTI.getMaxVScale())
23312331
return MaxVScale;
23322332

0 commit comments

Comments
 (0)