[llvm-bugs] [Bug 46350] New: DeadArgElim does not generate debug info for insertval/extractval instrs

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 16 07:21:38 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=46350

            Bug ID: 46350
           Summary: DeadArgElim does not generate debug info for
                    insertval/extractval instrs
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: djordje.todorovic at syrmia.com
                CC: jdevlieghere at apple.com, keith.walker at arm.com,
                    llvm-bugs at lists.llvm.org,
                    paul_robinson at playstation.sony.com

NOTE: This is found by the LLVM DI Checker utility
(https://github.com/djolertrk/llvm-di-checker). I am preparing an RFC, so this
will be used as a reference in the proposal.

Basically, an example as:

define internal { i32 } @fn1() !dbg !4 {
entry:
  unreachable
}

define void @fn2() personality i32 (i32)* undef !dbg !8 {
entry:
  %tmp2 = invoke { i32 } @fn1()
          to label %bb3 unwind label %bb4, !dbg !15
bb3:
  %tmp3 = phi { i32 } [ %tmp2, %entry ], !dbg !15
  unreachable
bb4:
  %tmp4 = landingpad { i8*, i32 }
          cleanup, !dbg !15
  unreachable
}

will end up (after $ opt -deadargelim -S) having the 'insertvalue' with no
debug location attached after the DeadArgElim pass.

Proposed fix: https://reviews.llvm.org/D81939

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200616/d0ec0156/attachment.html>


More information about the llvm-bugs mailing list