[llvm-bugs] [Bug 33623] New: llvm-diff finds differences in the same code
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jun 27 22:30:05 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33623
Bug ID: 33623
Summary: llvm-diff finds differences in the same code
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: yonghyun.kim at sf.snu.ac.kr
CC: llvm-bugs at lists.llvm.org
Created attachment 18727
--> https://bugs.llvm.org/attachment.cgi?id=18727&action=edit
naive.ll in comment
```
$ ./llvm-diff -version
LLVM (http://llvm.org/):
LLVM version 5.0.0svn
DEBUG build with assertions.
Default target: x86_64-unknown-linux-gnu
Host CPU: ivybridge
```
```
$ ./llvm-diff naive.ll naive.ll
in function foo:
in block %entry:
> store <2 x i64*> <i64* getelementptr inbounds ([2 x i64], [2 x i64]*
@a_vector, i64 0, i64 0), i64* getelementptr inbounds ([2 x i64], [2 x i64]*
@a_vector, i64 0, i64 0)>, <2 x i64*>* %tmp0, align 8
< store <2 x i64*> <i64* getelementptr inbounds ([2 x i64], [2 x i64]*
@a_vector, i64 0, i64 0), i64* getelementptr inbounds ([2 x i64], [2 x i64]*
@a_vector, i64 0, i64 0)>, <2 x i64*>* %tmp0, align 8
```
```
$ cat naive.ll
%struct.it = type { i64, i64* }
@a_vector = internal global [2 x i64] zeroinitializer, align 16
define i32 @foo(%struct.it* %it) {
entry:
%a = getelementptr inbounds %struct.it, %struct.it* %it, i64 0, i32 1
%tmp0 = bitcast i64** %a to <2 x i64*>*
store <2 x i64*> <i64* getelementptr inbounds ([2 x i64], [2 x i64]*
@a_vector, i64 0, i64 0), i64* getelementptr inbounds ([2 x i64], [2 x i64]*
@a_vector, i64 0, i64 0)>, <2 x i64*>* %tmp0, align 8
ret i32 0
}
```
--
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/20170628/c04afc9a/attachment.html>
More information about the llvm-bugs
mailing list