[PATCH] D36117: [DebugInfo] Don't turn dbg.declare into DBG_VALUE for static allocas

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 31 15:08:31 PDT 2017


rnk created this revision.
Herald added subscribers: aheejin, hiraditya, jgravelle-google, sbc100, dschuff, jfb.

We already have information about static alloca stack locations in our
side table. Emitting instructions for them is inefficient, and it only
happens when the address of the alloca has been materialized within the
current block, which isn't often.


https://reviews.llvm.org/D36117

Files:
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  llvm/test/DebugInfo/COFF/local-variables.ll
  llvm/test/DebugInfo/WebAssembly/dbg-declare.ll
  llvm/test/DebugInfo/X86/array.ll
  llvm/test/DebugInfo/X86/dbg-declare-alloca.ll
  llvm/test/DebugInfo/X86/dbg-declare.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36117.109011.patch
Type: text/x-patch
Size: 7122 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170731/2944c9a4/attachment.bin>


More information about the llvm-commits mailing list