<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:mhillen@linux.ibm.com" title="Marius Hillenbrand <mhillen@linux.ibm.com>"> <span class="fn">Marius Hillenbrand</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Reassociate reorders evaluation of short-circuited comparisons"
href="https://bugs.llvm.org/show_bug.cgi?id=48529">bug 48529</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;">Resolution</td>
<td>---
</td>
<td>INVALID
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Reassociate reorders evaluation of short-circuited comparisons"
href="https://bugs.llvm.org/show_bug.cgi?id=48529#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Reassociate reorders evaluation of short-circuited comparisons"
href="https://bugs.llvm.org/show_bug.cgi?id=48529">bug 48529</a>
from <span class="vcard"><a class="email" href="mailto:mhillen@linux.ibm.com" title="Marius Hillenbrand <mhillen@linux.ibm.com>"> <span class="fn">Marius Hillenbrand</span></a>
</span></b>
<pre>Per Sanjay Patel's comment on <a href="https://reviews.llvm.org/D94089">https://reviews.llvm.org/D94089</a>
<span class="quote">> I'm sympathetic to the motivation, but that was a hack: one goal of IR is to
> overcome side-channel source-level optimization like this.</span >
<span class="quote">> For example, we added several IR transforms to reduce compiled-code differences
> in source-level diffs like "if (bool1 && bool2)" vs. "if (bool1 & bool2)"
> (logical vs. bitwise ops).</span >
<span class="quote">> If the expression order matters, then we want the programmer to indicate that
> explicitly with something like "__builtin_expect" or profile metadata.</span >
... closing this bug as no-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>