<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:florian_hahn@apple.com" title="Florian Hahn <florian_hahn@apple.com>"> <span class="fn">Florian Hahn</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - wrong code with "-inline -early-cse-memssa -simplifycfg -instcombine -loop-unroll""
href="https://bugs.llvm.org/show_bug.cgi?id=48333">bug 48333</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>INVALID
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>florian_hahn@apple.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - wrong code with "-inline -early-cse-memssa -simplifycfg -instcombine -loop-unroll""
href="https://bugs.llvm.org/show_bug.cgi?id=48333#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - wrong code with "-inline -early-cse-memssa -simplifycfg -instcombine -loop-unroll""
href="https://bugs.llvm.org/show_bug.cgi?id=48333">bug 48333</a>
from <span class="vcard"><a class="email" href="mailto:florian_hahn@apple.com" title="Florian Hahn <florian_hahn@apple.com>"> <span class="fn">Florian Hahn</span></a>
</span></b>
<pre>I think the program contains at least 2 cases of UB (try -fsanitize=undefined).
d = -19:
* negative shift in `*f = (f == f) >> *f;`
* negative index for `c = b[d];`
I strongly suspect that is the source of the differences with optimizations. I
tried with d = 1 and the test produces consistent result. Please re-open in
case I missed something or if there's a non-UB version of the original program
that shows the issue.</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>