[PATCH] D76784: [WebAssembly] Clear frame base vreg in explicit-locals when stack pointer is dead

Derek Schuff via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 25 15:44:13 PDT 2020


dschuff added a reviewer: aardappel.
dschuff added a comment.

the IR to reproduce this is trivial but i'm still trying to reduce the debug info in the test. Basically this:

  define hidden %"struct.foo"* @"foo"() #1 !dbg !2 {
  fentry:
    %0 = alloca %"struct.bar", align 1
    call void @llvm.dbg.declare(metadata %"struct.bar"* %0, metadata !21513, metadata !DIExpression()), !dbg !21514
    ret %"struct.bar"* @"globl_", !dbg !21515
  }

...plus just enough debug info to cause generation of a CU and subprogram with a frame base.

But this came up in the openCV demo so it must not be that uncommon.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76784/new/

https://reviews.llvm.org/D76784





More information about the llvm-commits mailing list