diff options
author | Cong Hou <congh@google.com> | 2015-09-10 23:10:42 +0000 |
---|---|---|
committer | Cong Hou <congh@google.com> | 2015-09-10 23:10:42 +0000 |
commit | c536bd9e73a4a525771e41b15b209dd1149040cd (patch) | |
tree | d970ad9b5d98a82d28a8f3c51d04b2dd1db6b27a /llvm/unittests/Support/BranchProbabilityTest.cpp | |
parent | a29c612ddd84e91718fbb8915a25a50f9c4a3f88 (diff) | |
download | bcm5719-llvm-c536bd9e73a4a525771e41b15b209dd1149040cd.tar.gz bcm5719-llvm-c536bd9e73a4a525771e41b15b209dd1149040cd.zip |
Pass BranchProbability/BlockMass by value instead of const& as they are small. NFC.
llvm-svn: 247357
Diffstat (limited to 'llvm/unittests/Support/BranchProbabilityTest.cpp')
-rw-r--r-- | llvm/unittests/Support/BranchProbabilityTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/BranchProbabilityTest.cpp b/llvm/unittests/Support/BranchProbabilityTest.cpp index bbd4d4eba1c..43bfa849f3a 100644 --- a/llvm/unittests/Support/BranchProbabilityTest.cpp +++ b/llvm/unittests/Support/BranchProbabilityTest.cpp @@ -14,7 +14,7 @@ using namespace llvm; namespace llvm { -void PrintTo(const BranchProbability &P, ::std::ostream *os) { +void PrintTo(BranchProbability P, ::std::ostream *os) { *os << P.getNumerator() << "/" << P.getDenominator(); } } |