From 0739ccd3b588a6f2562bdc5a8f8847a49356394e Mon Sep 17 00:00:00 2001 From: Djordje Todorovic Date: Fri, 12 Jul 2019 09:45:12 +0000 Subject: Revert "[DwarfDebug] Dump call site debug info" A build failure was found on the SystemZ platform. This reverts commit 9e7e73578e54cd22b3c7af4b54274d743b6607cc. llvm-svn: 365886 --- llvm/lib/CodeGen/TargetInstrInfo.cpp | 40 ------------------------------------ 1 file changed, 40 deletions(-) (limited to 'llvm/lib/CodeGen/TargetInstrInfo.cpp') diff --git a/llvm/lib/CodeGen/TargetInstrInfo.cpp b/llvm/lib/CodeGen/TargetInstrInfo.cpp index f7f3e11f18a..868617ffe14 100644 --- a/llvm/lib/CodeGen/TargetInstrInfo.cpp +++ b/llvm/lib/CodeGen/TargetInstrInfo.cpp @@ -23,7 +23,6 @@ #include "llvm/CodeGen/TargetRegisterInfo.h" #include "llvm/CodeGen/TargetSchedule.h" #include "llvm/IR/DataLayout.h" -#include "llvm/IR/DebugInfoMetadata.h" #include "llvm/MC/MCAsmInfo.h" #include "llvm/MC/MCInstrItineraries.h" #include "llvm/Support/CommandLine.h" @@ -1121,45 +1120,6 @@ bool TargetInstrInfo::hasLowDefLatency(const TargetSchedModel &SchedModel, return (DefCycle != -1 && DefCycle <= 1); } -Optional -TargetInstrInfo::describeLoadedValue(const MachineInstr &MI) const { - const MachineOperand *Op = nullptr; - DIExpression *Expr = nullptr; - - const MachineOperand *SrcRegOp, *DestRegOp; - const MachineFunction *MF = MI.getMF(); - if (isCopyInstr(MI, SrcRegOp, DestRegOp)) { - Expr = DIExpression::get(MF->getFunction().getContext(), {}); - Op = SrcRegOp; - return ParamLoadedValue(Op, Expr); - } else if (MI.isMoveImmediate()) { - Expr = DIExpression::get(MF->getFunction().getContext(), {}); - Op = &MI.getOperand(1); - return ParamLoadedValue(Op, Expr); - } else if (MI.hasOneMemOperand()) { - int64_t Offset; - const auto &TRI = MF->getSubtarget().getRegisterInfo(); - const auto &TII = MF->getSubtarget().getInstrInfo(); - const MachineOperand *BaseOp; - if (!TII->getMemOperandWithOffset(MI, BaseOp, Offset, TRI)) - return None; - unsigned CastedOffset = static_cast(Offset); - if (Offset > 0) - Expr = DIExpression::get( - MF->getFunction().getContext(), - {dwarf::DW_OP_plus_uconst, CastedOffset, dwarf::DW_OP_deref}); - else - Expr = DIExpression::get(MF->getFunction().getContext(), - {dwarf::DW_OP_constu, -CastedOffset, - dwarf::DW_OP_minus, dwarf::DW_OP_deref}); - - Op = BaseOp; - return ParamLoadedValue(Op, Expr); - } - - return None; -} - /// Both DefMI and UseMI must be valid. By default, call directly to the /// itinerary. This may be overriden by the target. int TargetInstrInfo::getOperandLatency(const InstrItineraryData *ItinData, -- cgit v1.2.3