[llvm] r197358 - remove an uneeded statement (condition is covered by the statement
Reed Kotler
rkotler at mips.com
Sun Dec 15 15:34:00 PST 2013
Author: rkotler
Date: Sun Dec 15 17:33:59 2013
New Revision: 197358
URL: http://llvm.org/viewvc/llvm-project?rev=197358&view=rev
Log:
remove an uneeded statement (condition is covered by the statement
that follows).
Modified:
llvm/trunk/lib/Target/Mips/Mips16InstrInfo.cpp
Modified: llvm/trunk/lib/Target/Mips/Mips16InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/Mips16InstrInfo.cpp?rev=197358&r1=197357&r2=197358&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/Mips16InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/Mips/Mips16InstrInfo.cpp Sun Dec 15 17:33:59 2013
@@ -171,7 +171,6 @@ unsigned Mips16InstrInfo::getOppositeBra
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(MachineIn
}
}
-
}
// Adjust SP by FrameSize bytes. Save RA, S0, S1
void Mips16InstrInfo::makeFrame(unsigned SP, int64_t FrameSize,
More information about the llvm-commits
mailing list