[LLVMbugs] [Bug 16057] New: less efficient comparison of global addresses
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri May 17 10:15:37 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16057
Bug ID: 16057
Summary: less efficient comparison of global addresses
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
Assignee: unassignedbugs at nondot.org
Reporter: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Given
extern int x;
_Bool f(int *y) {
return &x == y;
}
gcc produces
f:
cmpq $x, %rdi
sete %al
ret
clang produces
f:
movl $x, %eax
cmpq %rax, %rdi
sete %al
ret
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130517/ce63c016/attachment.html>
More information about the llvm-bugs
mailing list