Displaying 2 results from an estimated 2 matches for "test_arg_del".
2016 Apr 20
2
Dangling debug value or bug in argument elimination pass?
David, Peter,
Let me try it one more time, now with an example… Short of upstreaming a fake function clone pass, let me only illustrate the issue in raw debug output. Hopefully it should be sufficient.
Try this:
clang -Os -g -fno-strict-aliasing test_arg_del.ll -mllvm -debug -mllvm -print-after-all
After
DAE - Removing argument 1 (reg) from foo
DAE - Removing argument 2 (field) from foo
DAE - Removing argument 4 (offset) from foo
We are going to have something like this:
*** IR Dump After Dead Argument Elimination ***; ModuleID = ...
2016 Apr 15
3
Dangling debug value or bug in argument elimination pass?
I will start from afar… When a dead function argument is removed, should we keep around the debug info for it?
I have the following case:
define internal fastcc void @foo(i8* %aa, i8* %reg, i8* %field, i32 %bb, ...) unnamed_addr #3 !dbg !28 {
entry:
call void @llvm.dbg.value(metabb i8* %aa, i64 0, metabb !34, metabb !47), !dbg !57
call void @llvm.dbg.value(metabb i8* %reg, i64 0,