aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
diff options
context:
space:
mode:
authorCong Hou <congh@google.com>2015-09-10 23:10:42 +0000
committerCong Hou <congh@google.com>2015-09-10 23:10:42 +0000
commitc536bd9e73a4a525771e41b15b209dd1149040cd (patch)
treed970ad9b5d98a82d28a8f3c51d04b2dd1db6b27a /llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
parenta29c612ddd84e91718fbb8915a25a50f9c4a3f88 (diff)
downloadllvm-c536bd9e73a4a525771e41b15b209dd1149040cd.zip
llvm-c536bd9e73a4a525771e41b15b209dd1149040cd.tar.gz
llvm-c536bd9e73a4a525771e41b15b209dd1149040cd.tar.bz2
Pass BranchProbability/BlockMass by value instead of const& as they are small. NFC.
llvm-svn: 247357
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
index 70e223d..d18058f 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
@@ -1474,7 +1474,7 @@ bool PPCInstrInfo::isProfitableToIfCvt(MachineBasicBlock &TMBB,
unsigned NumT, unsigned ExtraT,
MachineBasicBlock &FMBB,
unsigned NumF, unsigned ExtraF,
- const BranchProbability &Probability) const {
+ BranchProbability Probability) const {
return !(MBBDefinesCTR(TMBB) && MBBDefinesCTR(FMBB));
}