summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2017-12-24 12:46:22 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2017-12-24 12:46:22 +0000
commit802e6255b26d1630cf69feb573dbf9fd5bf94c8f (patch)
tree54a89061554fef2dae1f583ab73e953886b69df2 /llvm/lib/Transforms/Utils
parente0434fad168a85791e407e426328691e3cf175af (diff)
downloadbcm5719-llvm-802e6255b26d1630cf69feb573dbf9fd5bf94c8f.tar.gz
bcm5719-llvm-802e6255b26d1630cf69feb573dbf9fd5bf94c8f.zip
Make helpers static. No functionality change.
llvm-svn: 321425
Diffstat (limited to 'llvm/lib/Transforms/Utils')
-rw-r--r--llvm/lib/Transforms/Utils/LoopUtils.cpp7
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());
OpenPOWER on IntegriCloud