<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 - [alias] Missing optimization for __restrict"
href="https://bugs.llvm.org/show_bug.cgi?id=50811">50811</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[alias] Missing optimization for __restrict
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>11.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</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>Global Analyses
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>zhongyunde@tom.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>base on <a href="https://gcc.godbolt.org/">https://gcc.godbolt.org/</a>, I test the following simple case with newest
x86-64 clang 12.0.0, foo don't return false directly even with -O3 option.
int foo (int * __restrict a, int * __restrict b)
{
return a==b;
}
==== x86-64 clang 12.0.0 -O3 -S -g0 ============
foo(int*, int*): # @foo(int*, int*)
.cfi_startproc
xor eax, eax
cmp rdi, rsi
sete al
ret</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>