<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - llvm-diff finds differences in the same code"
href="https://bugs.llvm.org/show_bug.cgi?id=33623">33623</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm-diff finds differences in the same code
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>yonghyun.kim@sf.snu.ac.kr
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=18727" name="attach_18727" title="naive.ll in comment">attachment 18727</a> <a href="attachment.cgi?id=18727&action=edit" title="naive.ll in comment">[details]</a></span>
naive.ll in comment
```
$ ./llvm-diff -version
LLVM (<a href="http://llvm.org/">http://llvm.org/</a>):
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
}
```</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>