<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:kkhoo@perfwizard.com" title="Kay Tiong Khoo <kkhoo@perfwizard.com>"> <span class="fn">Kay Tiong Khoo</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - generate more efficient code for logical and operation"
href="http://llvm.org/bugs/show_bug.cgi?id=17109">bug 17109</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></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - generate more efficient code for logical and operation"
href="http://llvm.org/bugs/show_bug.cgi?id=17109#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - generate more efficient code for logical and operation"
href="http://llvm.org/bugs/show_bug.cgi?id=17109">bug 17109</a>
from <span class="vcard"><a class="email" href="mailto:kkhoo@perfwizard.com" title="Kay Tiong Khoo <kkhoo@perfwizard.com>"> <span class="fn">Kay Tiong Khoo</span></a>
</span></b>
<pre>Here's what I must've been dreaming of:
$ cat or.c
#include <stdbool.h>
bool or(unsigned int x, unsigned int y) {
return (x != 0 || y != 0);
}
$ ./clang -S -O3 -fomit-frame-pointer or.c -o /dev/stdout
.section __TEXT,__text,regular,pure_instructions
.globl _or
.align 4, 0x90
_or: ## @or
.cfi_startproc
## BB#0: ## %entry
orl %esi, %edi
setne %al
ret
Good job, compiler! :)</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>