[LLVMbugs] [Bug 19546] New: missed-optimization: copies of adjacent struct fields are not coalesced
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Apr 24 12:02:02 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=19546
Bug ID: 19546
Summary: missed-optimization: copies of adjacent struct fields
are not coalesced
Product: clang
Version: 3.4
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: luto at mit.edu
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
For every optimization setting I've tried, clang 3.4 generates two two-byte
copies for this code:
struct test
{
unsigned short a, b;
};
void copy_test(struct test * __restrict__ out,
const struct test * __restrict__ in)
{
out->a = in->a;
out->b = in->b;
}
It should generate the same code it does for *out = *in.
Sorry if I'm targetting the wrong component.
--
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/20140424/aba9b78d/attachment.html>
More information about the llvm-bugs
mailing list