diff options
author | Reid Kleckner <rnk@google.com> | 2017-05-09 16:01:47 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2017-05-09 16:01:47 +0000 |
commit | 84075fddfff8163c2e799ebd55a27b7b37d161b6 (patch) | |
tree | 3f9f568522c9a371bfbffaf41b78f3ff42fd40ae /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | fb82abd845e72e3aebdb271172119b83dd270910 (diff) | |
download | bcm5719-llvm-84075fddfff8163c2e799ebd55a27b7b37d161b6.tar.gz bcm5719-llvm-84075fddfff8163c2e799ebd55a27b7b37d161b6.zip |
Re-land "Don't add DBG_VALUE instructions for static allocas in dbg.declare"
This re-lands commit r302461. It was not the cause of PR32977.
llvm-svn: 302543
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index b5b09c526b5..7a411640360 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -4957,20 +4957,6 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) { // virtual register info from the FuncInfo.ValueMap. if (!EmitFuncArgumentDbgValue(Address, Variable, Expression, dl, 0, true, N)) { - // If variable is pinned by a alloca in dominating bb then - // use StaticAllocaMap. - if (const AllocaInst *AI = dyn_cast<AllocaInst>(Address)) { - if (AI->getParent() != DI.getParent()) { - DenseMap<const AllocaInst*, int>::iterator SI = - FuncInfo.StaticAllocaMap.find(AI); - if (SI != FuncInfo.StaticAllocaMap.end()) { - SDV = DAG.getFrameIndexDbgValue(Variable, Expression, SI->second, - 0, dl, SDNodeOrder); - DAG.AddDbgValue(SDV, nullptr, false); - return nullptr; - } - } - } DEBUG(dbgs() << "Dropping debug info for " << DI << "\n"); } } |