aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/CellSPU/SPUFrameLowering.cpp
diff options
context:
space:
mode:
authorKalle Raiskila <kalle.raiskila@nokia.com>2011-08-26 10:14:56 +0000
committerKalle Raiskila <kalle.raiskila@nokia.com>2011-08-26 10:14:56 +0000
commit54f8a9f54dfa39275f6fd277440b233891069283 (patch)
tree0b8ae4008ccc54f8f50bba1644b9628553e589a0 /lib/Target/CellSPU/SPUFrameLowering.cpp
parent5a18f20dab483ed20b67252a2eba4e5a5bd71cca (diff)
Don't insert branch hint lables that are never used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138630 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CellSPU/SPUFrameLowering.cpp')
-rw-r--r--lib/Target/CellSPU/SPUFrameLowering.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/Target/CellSPU/SPUFrameLowering.cpp b/lib/Target/CellSPU/SPUFrameLowering.cpp
index 8e3186b599..093f99f287 100644
--- a/lib/Target/CellSPU/SPUFrameLowering.cpp
+++ b/lib/Target/CellSPU/SPUFrameLowering.cpp
@@ -181,18 +181,6 @@ void SPUFrameLowering::emitPrologue(MachineFunction &MF) const {
MachineLocation FPSrc(MachineLocation::VirtualFP);
Moves.push_back(MachineMove(ReadyLabel, FPDst, FPSrc));
}
- } else {
- // This is a leaf function -- insert a branch hint iff there are
- // sufficient number instructions in the basic block. Note that
- // this is just a best guess based on the basic block's size.
- if (MBB.size() >= (unsigned) SPUFrameLowering::branchHintPenalty()) {
- MachineBasicBlock::iterator MBBI = MBB.getLastNonDebugInstr();
- dl = MBBI->getDebugLoc();
-
- // Insert terminator label
- BuildMI(MBB, MBBI, dl, TII.get(SPU::PROLOG_LABEL))
- .addSym(MMI.getContext().CreateTempSymbol());
- }
}
}