summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineCSE.cpp
diff options
context:
space:
mode:
authorKai Luo <lkail@cn.ibm.com>2019-08-07 05:40:21 +0000
committerKai Luo <lkail@cn.ibm.com>2019-08-07 05:40:21 +0000
commit02b8056cc1ace66ddc8c00c064838d11ab2f9742 (patch)
tree4bbe420a00ca35a2f4f22ee41cc8a670c27e0d52 /llvm/lib/CodeGen/MachineCSE.cpp
parent29688f4da0b62e760dcd65d607aa9a56cb1557e0 (diff)
downloadbcm5719-llvm-02b8056cc1ace66ddc8c00c064838d11ab2f9742.tar.gz
bcm5719-llvm-02b8056cc1ace66ddc8c00c064838d11ab2f9742.zip
[MachineCSE][NFC] Use 'profitable' rather than 'beneficial' to name method.
llvm-svn: 368124
Diffstat (limited to 'llvm/lib/CodeGen/MachineCSE.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineCSE.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/MachineCSE.cpp b/llvm/lib/CodeGen/MachineCSE.cpp
index bb844ced456..8f5778a51ac 100644
--- a/llvm/lib/CodeGen/MachineCSE.cpp
+++ b/llvm/lib/CodeGen/MachineCSE.cpp
@@ -137,11 +137,11 @@ namespace {
bool isPRECandidate(MachineInstr *MI);
bool ProcessBlockPRE(MachineDominatorTree *MDT, MachineBasicBlock *MBB);
bool PerformSimplePRE(MachineDominatorTree *DT);
- /// Heuristics to see if it's beneficial to move common computations of MBB
+ /// Heuristics to see if it's profitable to move common computations of MBB
/// and MBB1 to CandidateBB.
- bool isBeneficalToHoistInto(MachineBasicBlock *CandidateBB,
- MachineBasicBlock *MBB,
- MachineBasicBlock *MBB1);
+ bool isProfitableToHoistInto(MachineBasicBlock *CandidateBB,
+ MachineBasicBlock *MBB,
+ MachineBasicBlock *MBB1);
};
} // end anonymous namespace
@@ -809,7 +809,7 @@ bool MachineCSE::ProcessBlockPRE(MachineDominatorTree *DT,
if (!CMBB->isLegalToHoistInto())
continue;
- if (!isBeneficalToHoistInto(CMBB, MBB, MBB1))
+ if (!isProfitableToHoistInto(CMBB, MBB, MBB1))
continue;
// Two instrs are partial redundant if their basic blocks are reachable
@@ -864,9 +864,9 @@ bool MachineCSE::PerformSimplePRE(MachineDominatorTree *DT) {
return Changed;
}
-bool MachineCSE::isBeneficalToHoistInto(MachineBasicBlock *CandidateBB,
- MachineBasicBlock *MBB,
- MachineBasicBlock *MBB1) {
+bool MachineCSE::isProfitableToHoistInto(MachineBasicBlock *CandidateBB,
+ MachineBasicBlock *MBB,
+ MachineBasicBlock *MBB1) {
if (CandidateBB->getParent()->getFunction().hasMinSize())
return true;
assert(DT->dominates(CandidateBB, MBB) && "CandidateBB should dominate MBB");
OpenPOWER on IntegriCloud