diff options
Diffstat (limited to 'gnu/llvm/lib/Target/Hexagon/HexagonBlockRanges.cpp')
| -rw-r--r-- | gnu/llvm/lib/Target/Hexagon/HexagonBlockRanges.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/gnu/llvm/lib/Target/Hexagon/HexagonBlockRanges.cpp b/gnu/llvm/lib/Target/Hexagon/HexagonBlockRanges.cpp index 1640b40c164..ff915ca59da 100644 --- a/gnu/llvm/lib/Target/Hexagon/HexagonBlockRanges.cpp +++ b/gnu/llvm/lib/Target/Hexagon/HexagonBlockRanges.cpp @@ -1,4 +1,4 @@ -//===--- HexagonBlockRanges.cpp -------------------------------------------===// +//===- HexagonBlockRanges.cpp ---------------------------------------------===// // // The LLVM Compiler Infrastructure // @@ -7,8 +7,6 @@ // //===----------------------------------------------------------------------===// -#define DEBUG_TYPE "hbr" - #include "HexagonBlockRanges.h" #include "HexagonInstrInfo.h" #include "HexagonSubtarget.h" @@ -17,18 +15,23 @@ #include "llvm/CodeGen/MachineBasicBlock.h" #include "llvm/CodeGen/MachineFunction.h" #include "llvm/CodeGen/MachineInstr.h" +#include "llvm/CodeGen/MachineOperand.h" #include "llvm/CodeGen/MachineRegisterInfo.h" +#include "llvm/CodeGen/TargetRegisterInfo.h" #include "llvm/MC/MCRegisterInfo.h" #include "llvm/Support/Debug.h" #include "llvm/Support/raw_ostream.h" -#include "llvm/Target/TargetRegisterInfo.h" #include <algorithm> #include <cassert> +#include <cstdint> #include <iterator> #include <map> +#include <utility> using namespace llvm; +#define DEBUG_TYPE "hbr" + bool HexagonBlockRanges::IndexRange::overlaps(const IndexRange &A) const { // If A contains start(), or "this" contains A.start(), then overlap. IndexType S = start(), E = end(), AS = A.start(), AE = A.end(); @@ -365,7 +368,7 @@ void HexagonBlockRanges::computeInitialLiveRanges(InstrIndexMap &IndexMap, } } // Defs and clobbers can overlap, e.g. - // %D0<def,dead> = COPY %vreg5, %R0<imp-def>, %R1<imp-def> + // dead %d0 = COPY %5, implicit-def %r0, implicit-def %r1 for (RegisterRef R : Defs) Clobbers.erase(R); @@ -528,7 +531,7 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const HexagonBlockRanges::PrintRangeMap &P) { for (auto &I : P.Map) { const HexagonBlockRanges::RangeList &RL = I.second; - OS << PrintReg(I.first.Reg, &P.TRI, I.first.Sub) << " -> " << RL << "\n"; + OS << printReg(I.first.Reg, &P.TRI, I.first.Sub) << " -> " << RL << "\n"; } return OS; } |
