diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2017-12-24 12:46:22 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2017-12-24 12:46:22 +0000 |
commit | 802e6255b26d1630cf69feb573dbf9fd5bf94c8f (patch) | |
tree | 54a89061554fef2dae1f583ab73e953886b69df2 /llvm/lib/Transforms | |
parent | e0434fad168a85791e407e426328691e3cf175af (diff) | |
download | bcm5719-llvm-802e6255b26d1630cf69feb573dbf9fd5bf94c8f.tar.gz bcm5719-llvm-802e6255b26d1630cf69feb573dbf9fd5bf94c8f.zip |
Make helpers static. No functionality change.
llvm-svn: 321425
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUtils.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp index c3fa05a11a2..fe106e33bca 100644 --- a/llvm/lib/Transforms/Utils/LoopUtils.cpp +++ b/llvm/lib/Transforms/Utils/LoopUtils.cpp @@ -880,9 +880,10 @@ bool InductionDescriptor::isFPInductionPHI(PHINode *Phi, const Loop *TheLoop, /// If we are able to find such sequence, we return the instructions /// we found, namely %casted_phi and the instructions on its use-def chain up /// to the phi (not including the phi). -bool getCastsForInductionPHI( - PredicatedScalarEvolution &PSE, const SCEVUnknown *PhiScev, - const SCEVAddRecExpr *AR, SmallVectorImpl<Instruction *> &CastInsts) { +static bool getCastsForInductionPHI(PredicatedScalarEvolution &PSE, + const SCEVUnknown *PhiScev, + const SCEVAddRecExpr *AR, + SmallVectorImpl<Instruction *> &CastInsts) { assert(CastInsts.empty() && "CastInsts is expected to be empty."); auto *PN = cast<PHINode>(PhiScev->getValue()); |