<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:echristo@gmail.com" title="Eric Christopher <echristo@gmail.com>"> <span class="fn">Eric Christopher</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - inefficient local dynamic code on x86_64"
href="https://llvm.org/bugs/show_bug.cgi?id=17582">bug 17582</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>FIXED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - inefficient local dynamic code on x86_64"
href="https://llvm.org/bugs/show_bug.cgi?id=17582#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - inefficient local dynamic code on x86_64"
href="https://llvm.org/bugs/show_bug.cgi?id=17582">bug 17582</a>
from <span class="vcard"><a class="email" href="mailto:echristo@gmail.com" title="Eric Christopher <echristo@gmail.com>"> <span class="fn">Eric Christopher</span></a>
</span></b>
<pre>Code looks much better now:
dzur:~/tmp> ~/builds/build-llvm/Debug+Asserts/bin/clang -O2 -S -o - foo.c
.text
.file "foo.c"
.globl test
.align 16, 0x90
.type test,@function
test: # @test
.cfi_startproc
# BB#0: # %entry
movq $obj1@TPOFF, %rax
movq %fs:0, %rcx
addl %ecx, %eax
testl %eax, %eax
setg %al
movzbl %al, %edi
movq $obj2@TPOFF, %rax
addl %ecx, %eax
testl %eax, %eax
setg %al
movzbl %al, %esi
jmp f # TAILCALL
.Lfunc_end0:
.size test, .Lfunc_end0-test
.cfi_endproc
.hidden obj1 # @obj1
.type obj1,@object
.section .tbss,"awT",@nobits
.globl obj1
.align 4
obj1:
.long 0 # 0x0
.size obj1, 4
.hidden obj2 # @obj2
.type obj2,@object
.globl obj2
.align 4
obj2:
.long 0 # 0x0
.size obj2, 4
.ident "clang version 3.8.0 (trunk 250477) (llvm/trunk 250464)"
.section ".note.GNU-stack","",@progbits
Might want to verify though Rafael.</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>