[llvm] r235645 - [Hexagon] Minor cleanup in HexagonFrameLowering
Krzysztof Parzyszek
kparzysz at codeaurora.org
Thu Apr 23 13:42:20 PDT 2015
Author: kparzysz
Date: Thu Apr 23 15:42:20 2015
New Revision: 235645
URL: http://llvm.org/viewvc/llvm-project?rev=235645&view=rev
Log:
[Hexagon] Minor cleanup in HexagonFrameLowering
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonFrameLowering.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonFrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonFrameLowering.cpp?rev=235645&r1=235644&r2=235645&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonFrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonFrameLowering.cpp Thu Apr 23 15:42:20 2015
@@ -579,9 +579,6 @@ void HexagonFrameLowering::insertEpilogu
// Handle EH_RETURN.
if (RetOpc == Hexagon::EH_RETURN_JMPR) {
- MachineOperand &OffsetReg = RetI->getOperand(0);
- (void)OffsetReg; // Silence compiler warning.
- assert(OffsetReg.isReg() && "Offset should be in register!");
BuildMI(MBB, InsertPt, DL, HII.get(Hexagon::L2_deallocframe));
BuildMI(MBB, InsertPt, DL, HII.get(Hexagon::A2_add), SP)
.addReg(SP)
@@ -1008,9 +1005,8 @@ static void dump_registers(BitVector &Re
bool HexagonFrameLowering::assignCalleeSavedSpillSlots(MachineFunction &MF,
const TargetRegisterInfo *TRI, std::vector<CalleeSavedInfo> &CSI) const {
- const Function &F = *MF.getFunction();
- (void)F; // Silence compiler warning.
- DEBUG(dbgs() << LLVM_FUNCTION_NAME << " on " << F.getName() << '\n');
+ DEBUG(dbgs() << LLVM_FUNCTION_NAME << " on "
+ << MF.getFunction().getName() << '\n');
MachineFrameInfo *MFI = MF.getFrameInfo();
BitVector SRegs(Hexagon::NUM_TARGET_REGS);
More information about the llvm-commits
mailing list