[llvm] r302035 - [Hexagon] Misc fixes in HexagonInstrInfo, NFC

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Wed May 3 08:34:52 PDT 2017


Author: kparzysz
Date: Wed May  3 10:34:52 2017
New Revision: 302035

URL: http://llvm.org/viewvc/llvm-project?rev=302035&view=rev
Log:
[Hexagon] Misc fixes in HexagonInstrInfo, NFC

Formatting changes + remove unused function.

Modified:
    llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp

Modified: llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp?rev=302035&r1=302034&r2=302035&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp Wed May  3 10:34:52 2017
@@ -1971,7 +1971,7 @@ bool HexagonInstrInfo::isDeallocRet(cons
   case Hexagon::L4_return_fnew_pnt :
   case Hexagon::L4_return_tnew_pt :
   case Hexagon::L4_return_fnew_pt :
-   return true;
+    return true;
   }
   return false;
 }
@@ -2170,7 +2170,7 @@ bool HexagonInstrInfo::isJumpR(const Mac
 bool HexagonInstrInfo::isJumpWithinBranchRange(const MachineInstr &MI,
       unsigned offset) const {
   // This selection of jump instructions matches to that what
-  // AnalyzeBranch can parse, plus NVJ.
+  // analyzeBranch can parse, plus NVJ.
   if (isNewValueJump(MI)) // r9:2
     return isInt<11>(offset);
 
@@ -3519,7 +3519,6 @@ int HexagonInstrInfo::getDotNewOp(const
   return 0;
 }
 
-
 // Returns the opcode to use when converting MI, which is a conditional jump,
 // into a conditional instruction which uses the .new value of the predicate.
 // We also use branch probabilities to add a hint to the jump.
@@ -4018,18 +4017,6 @@ short HexagonInstrInfo::getEquivalentHWI
   return Hexagon::getRealHWInstr(MI.getOpcode(), Hexagon::InstrType_Real);
 }
 
-// Return first non-debug instruction in the basic block.
-MachineInstr *HexagonInstrInfo::getFirstNonDbgInst(MachineBasicBlock *BB)
-      const {
-  for (auto MII = BB->instr_begin(), End = BB->instr_end(); MII != End; MII++) {
-    MachineInstr &MI = *MII;
-    if (MI.isDebugValue())
-      continue;
-    return &MI;
-  }
-  return nullptr;
-}
-
 unsigned HexagonInstrInfo::getInstrTimingClassLatency(
       const InstrItineraryData *ItinData, const MachineInstr &MI) const {
   // Default to one cycle for no itinerary. However, an "empty" itinerary may




More information about the llvm-commits mailing list