summaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FastISel.cpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
index e8a3df3366b2..fb9eff942a46 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -1395,51 +1395,6 @@ bool FastISel::selectIntrinsicCall(const IntrinsicInst *II) {
// Neither does the llvm.experimental.noalias.scope.decl intrinsic
case Intrinsic::experimental_noalias_scope_decl:
return true;
- case Intrinsic::dbg_declare: {
- const DbgDeclareInst *DI = cast<DbgDeclareInst>(II);
- assert(DI->getVariable() && "Missing variable");
- if (FuncInfo.PreprocessedDbgDeclares.contains(DI))
- return true;
-
- const Value *Address = DI->getAddress();
- if (!lowerDbgDeclare(Address, DI->getExpression(), DI->getVariable(),
- MIMD.getDL()))
- LLVM_DEBUG(dbgs() << "Dropping debug info for " << *DI);
-
- return true;
- }
- case Intrinsic::dbg_assign:
- // A dbg.assign is a dbg.value with more information, typically produced
- // during optimisation. If one reaches fastisel then something odd has
- // happened (such as an optimised function being always-inlined into an
- // optnone function). We will not be using the extra information in the
- // dbg.assign in that case, just use its dbg.value fields.
- [[fallthrough]];
- case Intrinsic::dbg_value: {
- // This form of DBG_VALUE is target-independent.
- const DbgValueInst *DI = cast<DbgValueInst>(II);
- const Value *V = DI->getValue();
- DIExpression *Expr = DI->getExpression();
- DILocalVariable *Var = DI->getVariable();
- if (DI->hasArgList())
- // Signal that we don't have a location for this.
- V = nullptr;
-
- assert(Var->isValidLocationForIntrinsic(MIMD.getDL()) &&
- "Expected inlined-at fields to agree");
-
- if (!lowerDbgValue(V, Expr, Var, MIMD.getDL()))
- LLVM_DEBUG(dbgs() << "Dropping debug info for " << *DI << "\n");
-
- return true;
- }
- case Intrinsic::dbg_label: {
- const DbgLabelInst *DI = cast<DbgLabelInst>(II);
- assert(DI->getLabel() && "Missing label");
- BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, MIMD,
- TII.get(TargetOpcode::DBG_LABEL)).addMetadata(DI->getLabel());
- return true;
- }
case Intrinsic::objectsize:
llvm_unreachable("llvm.objectsize.* should have been lowered already");