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: unassignedb...@nondot.org
Reporter: djordje.todoro...@syrmia.com
CC: jdevliegh...@apple.com, keith.wal...@arm.com,
llvm-bugs@lists.llvm.org,
paul_robin...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs