summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2017-05-26 20:09:00 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2017-05-26 20:09:00 +0000
commitdebb3c35e05f8de047b8b20d787baf821cd8d904 (patch)
treee87706887347ce6fa72e09a7ab58777574343afb /llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
parent674d5792717a1493c104ccee19b92fc5f6065b83 (diff)
downloadbcm5719-llvm-debb3c35e05f8de047b8b20d787baf821cd8d904.tar.gz
bcm5719-llvm-debb3c35e05f8de047b8b20d787baf821cd8d904.zip
Make helper functions static. NFC.
llvm-svn: 304029
Diffstat (limited to 'llvm/lib/Transforms/Scalar/ConstantHoisting.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/ConstantHoisting.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp b/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
index f62e111460c..c3810366bf2 100644
--- a/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
+++ b/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
@@ -164,9 +164,9 @@ Instruction *ConstantHoistingPass::findMatInsertPt(Instruction *Inst,
/// \brief Given \p BBs as input, find another set of BBs which collectively
/// dominates \p BBs and have the minimal sum of frequencies. Return the BB
/// set found in \p BBs.
-void findBestInsertionSet(DominatorTree &DT, BlockFrequencyInfo &BFI,
- BasicBlock *Entry,
- SmallPtrSet<BasicBlock *, 8> &BBs) {
+static void findBestInsertionSet(DominatorTree &DT, BlockFrequencyInfo &BFI,
+ BasicBlock *Entry,
+ SmallPtrSet<BasicBlock *, 8> &BBs) {
assert(!BBs.count(Entry) && "Assume Entry is not in BBs");
// Nodes on the current path to the root.
SmallPtrSet<BasicBlock *, 8> Path;
OpenPOWER on IntegriCloud