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/lib/Target/PowerPC/PPCInstrInfo.cpp | |
parent | a29c612ddd84e91718fbb8915a25a50f9c4a3f88 (diff) | |
download | llvm-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.cpp | 2 |
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)); } |