[llvm-bugs] [Bug 37967] New: [debugify] memcpyopt fail
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jun 27 10:12:55 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37967
Bug ID: 37967
Summary: [debugify] memcpyopt 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 20484
--> https://bugs.llvm.org/attachment.cgi?id=20484&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 memcpy_optimization.cpp
struct Foo {
long f0;
long f1;
} *a;
int bar(Foo, Foo, int&c, Foo) {
c = bar(a[0], a[0], c, a[0]);
return c;
}
$ clang -target x86_64-unknown-unknown memcpy_optimization.cpp -O0 -Xclang
-disable-O0-optnone -emit-llvm -S -o memcpyopt-input.ll
$ opt -debugify-each -disable-output -instcombine -memcpyopt memcpyopt-input.ll
WARNING: Missing line 1
WARNING: Missing line 2
WARNING: Missing line 7
WARNING: Missing line 8
WARNING: Missing line 9
WARNING: Missing line 10
WARNING: Missing line 11
WARNING: Missing line 12
WARNING: Missing line 13
WARNING: Missing line 14
WARNING: Missing line 15
WARNING: Missing line 16
WARNING: Missing line 19
WARNING: Missing line 21
WARNING: Missing line 23
WARNING: Missing line 24
WARNING: Missing line 26
WARNING: Missing line 28
WARNING: Missing line 29
WARNING: Missing line 30
WARNING: Missing line 32
WARNING: Missing line 34
WARNING: Missing line 39
WARNING: Missing line 47
WARNING: Missing line 48
WARNING: Missing variable 1
WARNING: Missing variable 2
CheckFunctionDebugify [Combine redundant instructions]: PASS
ERROR: Instruction with empty DebugLoc in function _Z3bar3FooS_RiS_ --
%tmpcast = bitcast i8* %1 to %struct.Foo*
CheckFunctionDebugify [MemCpy Optimization]: 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180627/efb825e1/attachment.html>
More information about the llvm-bugs
mailing list