DebugLocLists with no entries: any idea how to generate a testcase?

David Blaikie dblaikie at gmail.com
Wed May 27 17:55:06 PDT 2015


Can't say I know of any particular situations that cause this (I guess it's
trickier than just a variable that's optimized away entirely) - I'd just
start reducing an existing test case (probably add the assertion and try a
non-LTO build, hope that it reproduces there, then just creduce any
specific file where it reproduces)

On Wed, May 27, 2015 at 5:51 PM, Duncan P. N. Exon Smith <
dexonsmith at apple.com> wrote:

> I've noticed there are debug loc lists with no entries sometimes
> in my heap profiling workload (a linker dump of `-flto -g`).  It
> seems to happen when *all* the locations correspond to `%noreg`.
>
> This patch adds an assertion (which fires on my big workload,
> but not in any of our tests), and adds a likely fix that's
> commented out.
>
> Does anyone know how to generate this kind of thing, or should I
> just start compiling things to see if I can make it happen on my
> own?  (I've tried reducing my workload, but I'm having trouble
> getting very far with it.)
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150527/d317629b/attachment.html>


More information about the llvm-commits mailing list