[Hexagon] Minor cleanup in HexagonFrameLowering
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Thu, 23 Apr 2015 20:42:20 +0000 (20:42 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Thu, 23 Apr 2015 20:42:20 +0000 (20:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235645 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Hexagon/HexagonFrameLowering.cpp

index c701d2567e6110192a3bc9bdfe9d5637cf6d9f74..84417ae8b24dda7713d6edcf9828b02e064761ae 100644 (file)
@@ -579,9 +579,6 @@ void HexagonFrameLowering::insertEpilogueInBlock(MachineBasicBlock &MBB) const {
 
   // 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 &Regs, const TargetRegisterInfo &TRI) {
 
 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);