[LLVMbugs] [Bug 21414] New: clang shouldn't use aligned SSE instructions on 32bit linux
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Oct 29 16:39:15 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=21414
Bug ID: 21414
Summary: clang shouldn't use aligned SSE instructions on 32bit
linux
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
Assignee: unassignedbugs at nondot.org
Reporter: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
We recently enabled clang as default compiler for chrome on linux. It mostly
went well. One problem we ran into was that chrome 38 crashed on old debians.
rnk explained this to me, and from what I understand (I probably got some of it
wrong) it was due to clang using aligned SSE instructions.
gcc changed their alignment abi on linux a while ago, and the current abi does
guarantee alignment. The old one doesn't, and I suppose on debian system
libraries still use the old abi. gcc emits unaligned SSE loads on 32bit linux,
clang should too.
As is, every provider of binary-distributed binaries on linux will run into
this and then work around it somehow. We ended up adding tons of stack
adjustments, which bloats binary size, is bad for the icache, etc. Unaligned
SSE reads are almost as fast as aligned ones, so clang should do the thing that
Just Works instead of giving a bad user experience to its users.
https://code.google.com/p/nativeclient/issues/detail?id=3935
--
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/20141029/7291444c/attachment.html>
More information about the llvm-bugs
mailing list