summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReed Kotler <rkotler@mips.com>2013-12-15 23:33:59 +0000
committerReed Kotler <rkotler@mips.com>2013-12-15 23:33:59 +0000
commit10f818b5ddaeb64c857f3a18b888c1b1f1e424d3 (patch)
treec25462af68a0e1436c5291b2d8f7590cc0fb1327
parent9969630d6df81612302ac1e9f2acf0ba0b3950db (diff)
downloadllvm-10f818b5ddaeb64c857f3a18b888c1b1f1e424d3.tar.gz
llvm-10f818b5ddaeb64c857f3a18b888c1b1f1e424d3.tar.bz2
llvm-10f818b5ddaeb64c857f3a18b888c1b1f1e424d3.tar.xz
remove an uneeded statement (condition is covered by the statement
that follows). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197358 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/Mips/Mips16InstrInfo.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Target/Mips/Mips16InstrInfo.cpp b/lib/Target/Mips/Mips16InstrInfo.cpp
index 17d13925c0..1b6b899851 100644
--- a/lib/Target/Mips/Mips16InstrInfo.cpp
+++ b/lib/Target/Mips/Mips16InstrInfo.cpp
@@ -171,7 +171,6 @@ unsigned Mips16InstrInfo::getOppositeBranchOpc(unsigned Opc) const {
static void addSaveRestoreRegs(MachineInstrBuilder &MIB,
const std::vector<CalleeSavedInfo> &CSI, unsigned Flags=0) {
- if (CSI.size()==0) return;
for (unsigned i = 0, e = CSI.size(); i != e; ++i) {
// Add the callee-saved register as live-in. Do not add if the register is
// RA and return address is taken, because it has already been added in
@@ -192,7 +191,6 @@ static void addSaveRestoreRegs(MachineInstrBuilder &MIB,
}
}
-
}
// Adjust SP by FrameSize bytes. Save RA, S0, S1
void Mips16InstrInfo::makeFrame(unsigned SP, int64_t FrameSize,