[llvm] ba7af0b - [NFC] Add missing 'static' notion in createReplacement

Max Kazantsev via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 8 23:13:12 PST 2023


Author: Max Kazantsev
Date: 2023-01-09T14:13:05+07:00
New Revision: ba7af0bf693205fb82ff17d909c58e9402983fde

URL: https://github.com/llvm/llvm-project/commit/ba7af0bf693205fb82ff17d909c58e9402983fde
DIFF: https://github.com/llvm/llvm-project/commit/ba7af0bf693205fb82ff17d909c58e9402983fde.diff

LOG: [NFC] Add missing 'static' notion in createReplacement

Added: 
    

Modified: 
    llvm/lib/Transforms/Scalar/IndVarSimplify.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
index 667a6581c38c5..2c5f226d505f4 100644
--- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -1371,11 +1371,10 @@ createInvariantCond(const Loop *L, BasicBlock *ExitingBB,
                             BI->getCondition()->getName());
 }
 
-std::optional<Value *> createReplacement(Value *V, const Loop *L,
-                                         BasicBlock *ExitingBB,
-                                         const SCEV *MaxIter, bool SkipLastIter,
-                                         ScalarEvolution *SE,
-                                         SCEVExpander &Rewriter) {
+static std::optional<Value *>
+createReplacement(Value *V, const Loop *L, BasicBlock *ExitingBB,
+                  const SCEV *MaxIter, bool SkipLastIter, ScalarEvolution *SE,
+                  SCEVExpander &Rewriter) {
   ICmpInst::Predicate Pred;
   Value *LHS, *RHS;
   if (!match(V, m_ICmp(Pred, m_Value(LHS), m_Value(RHS))))


        


More information about the llvm-commits mailing list