<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:david.majnemer@gmail.com" title="David Majnemer <david.majnemer@gmail.com>"> <span class="fn">David Majnemer</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - clang hangs on valid code at -Os and above on x86_64-linux-gnu"
href="http://llvm.org/bugs/show_bug.cgi?id=21377">bug 21377</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;">CC</td>
<td>
</td>
<td>david.majnemer@gmail.com
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr>
<tr>
<td style="text-align:right;">Assignee</td>
<td>unassignedclangbugs@nondot.org
</td>
<td>david.majnemer@gmail.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - clang hangs on valid code at -Os and above on x86_64-linux-gnu"
href="http://llvm.org/bugs/show_bug.cgi?id=21377#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - clang hangs on valid code at -Os and above on x86_64-linux-gnu"
href="http://llvm.org/bugs/show_bug.cgi?id=21377">bug 21377</a>
from <span class="vcard"><a class="email" href="mailto:david.majnemer@gmail.com" title="David Majnemer <david.majnemer@gmail.com>"> <span class="fn">David Majnemer</span></a>
</span></b>
<pre>InstCombine is fighting with itself.
reduced IR:
; ModuleID = 'bugpoint-reduced-simplified.bc'
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@a = external global i32, align 4
@b = external global i32, align 4
; Function Attrs: nounwind
define void @main() #0 {
entry:
br label %while.cond.i
while.cond.i: ; preds = %while.end.i,
%entry
%g.0.i = phi i64 [ 0, %entry ], [ %phitmp5.i, %while.end.i ]
br i1 undef, label %fn2.exit, label %while.body.i
while.body.i: ; preds = %while.cond.i
%0 = load i32* @b, align 4
%conv.i = zext i32 %0 to i64
%phitmp3.i = or i64 %g.0.i, %conv.i
br label %while.cond3.i
while.cond3.i: ; preds = %while.cond3.i,
%while.body.i
%g.1.i = phi i64 [ %phitmp3.i, %while.body.i ], [ 0, %while.cond3.i ]
br i1 undef, label %while.end.i, label %while.cond3.i
while.end.i: ; preds = %while.cond3.i
%1 = load i32* @a, align 4
%conv.i.i = sext i32 %1 to i64
%or7.i = or i64 %g.1.i, %conv.i.i
%phitmp5.i = and i64 %or7.i, 4294967295
br label %while.cond.i
fn2.exit: ; preds = %while.cond.i
ret void
}
attributes #0 = { nounwind "less-precise-fpmad"="false"
"no-frame-pointer-elim"="false" "no-infs-fp-math"="false"
"no-nans-fp-math"="false" "no-realign-stack" "stack-protector-buffer-size"="8"
"unsafe-fp-math"="false" "use-soft-float"="false" }
!llvm.ident = !{!0}
!0 = metadata !{metadata !"clang version 3.6.0 "}</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>