https://bugs.llvm.org/show_bug.cgi?id=37960
Bug ID: 37960
Summary: [debugify] ipsccp fail
Product: new-bugs
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedb...@nondot.org
Reporter: greg.bedw...@sony.com
CC: anastasis.gra...@gmail.com, dav...@freebsd.org,
llvm-bugs@lists.llvm.org, v...@apple.com
Blocks: 37953
Created attachment 20478
--> https://bugs.llvm.org/attachment.cgi?id=20478&action=edit
ll reproducer
Silly testcase, but raising on the basis that no input (no matter how silly)
should be causing debugify fails.
$ 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 interprocedural_sparse_conditional_constant_propagation.cpp
static void foo() {}
void bar() { foo; }
$ clang interprocedural_sparse_conditional_constant_propagation.cpp -O0 -Xclang
-disable-O0-optnone -S -emit-llvm -o ipsccp-input.ll
interprocedural_sparse_conditional_constant_propagation.cpp:2:14: warning:
expression result unused [-Wunused-value]
void bar() { foo; }
^~~
1 warning generated.
$ opt ipsccp-input.ll -disable-output -debugify-each -ipsccp
ERROR: Instruction with empty DebugLoc in function ?foo@@YAXXZ -- unreachable
WARNING: Missing line 2
CheckModuleDebugify [Interprocedural Sparse Conditional Constant Propagation]:
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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs