<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:Florian.Hahn@arm.com" title="Florian Hahn <Florian.Hahn@arm.com>"> <span class="fn">Florian Hahn</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - LVI does not resolve condition value in destination blocks of conditional branches"
href="https://bugs.llvm.org/show_bug.cgi?id=9004">bug 9004</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;">CC</td>
<td>
</td>
<td>Florian.Hahn@arm.com
</td>
</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>FIXED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - LVI does not resolve condition value in destination blocks of conditional branches"
href="https://bugs.llvm.org/show_bug.cgi?id=9004#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - LVI does not resolve condition value in destination blocks of conditional branches"
href="https://bugs.llvm.org/show_bug.cgi?id=9004">bug 9004</a>
from <span class="vcard"><a class="email" href="mailto:Florian.Hahn@arm.com" title="Florian Hahn <Florian.Hahn@arm.com>"> <span class="fn">Florian Hahn</span></a>
</span></b>
<pre>correlated value propagation gets this using LVI. I am closing this now, please
reopen in case I missed anything.
opt -correlated-propagation lvi2.ll -S
; ModuleID = 'lvi2.ll'
source_filename = "lvi2.ll"
define i1 @foo(i32 %x) {
%cond = icmp eq i32 %x, 0
br i1 %cond, label %iftrue, label %iffalse
iftrue: ; preds = %0
ret i1 true
iffalse: ; preds = %0
ret i1 false
}</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>