https://bugs.llvm.org/show_bug.cgi?id=38083
Bug ID: 38083
Summary: [debugify] instcombine fail (2) (Instruction with
empty DebugLoc in function)
Product: new-bugs
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Blocks: 37953
Created attachment 20533
--> https://bugs.llvm.org/attachment.cgi?id=20533&action=edit
ll reproducer
$ clang -v
clang version 7.0.0 (trunk 336429) (llvm/trunk 336428)
Target: x86_64-scei-ps4
Thread model: posix
InstalledDir: e:\work\upstream-llvm\build-vs2015-ps4-ninja\bin
$ cat 1.Combine_redundant_instructions.FAIL_with_warnings.cpp
void foo();
void bar() {
for (int baz = 0; baz < 10; baz++)
foo();
}
$ clang --target=x86_64-unkown-unknown -O0 -Xclang -disable-O0-optnone
1.Combine_redundant_instructions.FAIL_with_warnings.cpp -S -emit-llvm -o
instcombine-input.ll
$ opt -debugify-each -disable-output -instcombine instcombine-input.ll
ERROR: Instruction with empty DebugLoc in function _Z3barv -- %storemerge =
phi i32 [ 0, %entry ], [ %inc, %for.inc ]
WARNING: Missing line 2
WARNING: Missing line 4
WARNING: Missing line 11
CheckFunctionDebugify [Combine redundant instructions]: FAIL
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
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs