<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 - File reports diff on itself"
href="https://bugs.llvm.org/show_bug.cgi?id=50790">50790</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>File reports diff on itself
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>llvm-diff
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>isanbard@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>$ more reduced.ll
; ModuleID = '../v.ll'
source_filename = "arch/x86/kvm/vmx.c"
target datalayout =
"e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-grtev4-linux-gnu"
@shadow_read_write_fields = external dso_local global [28 x i16], align 16
@__const.copy_shadow_to_vmcs12.fields = private unnamed_addr constant [2 x
i16*] [i16* getelementptr inbounds ([28 x i16], [28 x i16]*
@shadow_read_write_fields, i32 0, i32 0), i16* poison], align 16
; Function Attrs: argmemonly nofree nosync nounwind willreturn
declare void @llvm.lifetime.start.p0i8(i64 immarg, i8* nocapture) #0
; Function Attrs: argmemonly nofree nosync nounwind willreturn
declare void @llvm.lifetime.end.p0i8(i64 immarg, i8* nocapture) #0
define internal void @vmx_vcpu_run() {
%1 = getelementptr [2 x i16*], [2 x i16*]*
@__const.copy_shadow_to_vmcs12.fields, i64 0, i64 undef
ret void
}
; Function Attrs: nounwind readonly
declare i64 @llvm.read_register.i64(metadata) #1
; Function Attrs: nounwind
declare void @llvm.write_register.i64(metadata, i64) #2
attributes #0 = { argmemonly nofree nosync nounwind willreturn }
attributes #1 = { nounwind readonly }
attributes #2 = { nounwind }
$ ./build.opt/bin/llvm-diff reduced.ll reduced.ll
in function vmx_vcpu_run:
in block %0 / %0:
> %1 = getelementptr [2 x i16*], [2 x i16*]*
@__const.copy_shadow_to_vmcs12.fields, i64 0, i64 undef
< %1 = getelementptr [2 x i16*], [2 x i16*]*
@__const.copy_shadow_to_vmcs12.fields, i64 0, i64 undef</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>