diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2018-10-13 22:18:22 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2018-10-13 22:18:22 +0000 |
commit | c55e9975566ca2491d377a33f1ac497ef12571a3 (patch) | |
tree | 1474ecce883dbfa88a45d8d0bc6bfa75bd8fa3c5 /llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp | |
parent | 7899ccbcca9dd69ad21231a047c1e6130528937e (diff) | |
download | bcm5719-llvm-c55e9975566ca2491d377a33f1ac497ef12571a3.tar.gz bcm5719-llvm-c55e9975566ca2491d377a33f1ac497ef12571a3.zip |
Move some helpers from the global namespace into anonymous ones.
llvm-svn: 344468
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp index 2c0721f7366..8f4159d3d19 100644 --- a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp +++ b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp @@ -621,9 +621,10 @@ static BranchProbability getCHRBiasThreshold() { // CHRBiasThreshold, put Key into TrueSet and return true. If FalseProb >= // CHRBiasThreshold, put Key into FalseSet and return true. Otherwise, return // false. -template<typename K, typename S, typename M> -bool checkBias(K *Key, BranchProbability TrueProb, BranchProbability FalseProb, - S &TrueSet, S &FalseSet, M &BiasMap) { +template <typename K, typename S, typename M> +static bool checkBias(K *Key, BranchProbability TrueProb, + BranchProbability FalseProb, S &TrueSet, S &FalseSet, + M &BiasMap) { BranchProbability Threshold = getCHRBiasThreshold(); if (TrueProb >= Threshold) { TrueSet.insert(Key); |