[llvm-bugs] [Bug 37956] New: [debugify] deadargelim fail
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jun 27 07:06:33 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37956
Bug ID: 37956
Summary: [debugify] deadargelim fail
Product: new-bugs
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: greg.bedwell at sony.com
CC: llvm-bugs at lists.llvm.org
Blocks: 37953
Created attachment 20476
--> https://bugs.llvm.org/attachment.cgi?id=20476&action=edit
ll reproducer
$ clang -v
clang version 7.0.0 (trunk 335708) (llvm/trunk 335721)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: e:\work\upstream-llvm\build-vs2015-native-ninja\bin
$ cat dead_argument_elimination.cpp
struct Foo {} *ff;
static Foo bar() { return *ff; }
Foo baz() { return bar(); }
$ clang dead_argument_elimination.cpp -O0 -Xclang -disable-O0-optnone -S
-emit-llvm -o - | opt -sroa -ipsccp -S -o deadargelim-input.ll
$ opt deadargelim-input.ll -debugify-each -deadargelim -disable-output
ERROR: Instruction with empty DebugLoc in function ?bar@@YA?AUFoo@@XZ -- ret
void
WARNING: Missing line 4
CheckModuleDebugify [Dead Argument Elimination]: FAIL
CheckFunctionDebugify [Module Verifier]: PASS
CheckFunctionDebugify [Module Verifier]: PASS
Referenced Bugs:
https://bugs.llvm.org/show_bug.cgi?id=37953
[Bug 37953] [meta] [debugify] fix -check-debugify failures
--
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/20180627/42d93cc9/attachment.html>
More information about the llvm-bugs
mailing list