diff options
author | Noah Goldstein <goldstein.w.n@gmail.com> | 2024-06-21 16:39:02 +0800 |
---|---|---|
committer | Noah Goldstein <goldstein.w.n@gmail.com> | 2024-06-21 16:41:03 +0800 |
commit | ef16f7ac1b3267e11bad464b4116d34396e7967f (patch) | |
tree | d30ae7fa88a35ff1d1db8b0d319ad105b98c138f /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | d59a4cac5fe6c05da0e9088aad8f94c207423c36 (diff) | |
download | llvm-ef16f7ac1b3267e11bad464b4116d34396e7967f.zip llvm-ef16f7ac1b3267e11bad464b4116d34396e7967f.tar.gz llvm-ef16f7ac1b3267e11bad464b4116d34396e7967f.tar.bz2 |
[CodeGenPrepare] Add missing `static` decl on `matchIncrement()`; NFC
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index f8fdba2..900c33b5 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -1499,8 +1499,8 @@ static bool OptimizeNoopCopyExpression(CastInst *CI, const TargetLowering &TLI, // Match a simple increment by constant operation. Note that if a sub is // matched, the step is negated (as if the step had been canonicalized to // an add, even though we leave the instruction alone.) -bool matchIncrement(const Instruction *IVInc, Instruction *&LHS, - Constant *&Step) { +static bool matchIncrement(const Instruction *IVInc, Instruction *&LHS, + Constant *&Step) { if (match(IVInc, m_Add(m_Instruction(LHS), m_Constant(Step))) || match(IVInc, m_ExtractValue<0>(m_Intrinsic<Intrinsic::uadd_with_overflow>( m_Instruction(LHS), m_Constant(Step))))) |