summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
diff options
context:
space:
mode:
authorMark Seaborn <mseaborn@chromium.org>2014-02-16 18:59:48 +0000
committerMark Seaborn <mseaborn@chromium.org>2014-02-16 18:59:48 +0000
commitbe266aa3251667c62fb2f96af939b53d5e82fe46 (patch)
tree80a66ecaf410580ad8e1f1556a3e1c32c3b5c1b6 /llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
parent26f567d8a4ea440c6182c793d6946aad5587cfe7 (diff)
downloadbcm5719-llvm-be266aa3251667c62fb2f96af939b53d5e82fe46.tar.gz
bcm5719-llvm-be266aa3251667c62fb2f96af939b53d5e82fe46.zip
Use 16 byte stack alignment for NaCl on ARM
NaCl's ARM ABI uses 16 byte stack alignment, so set that in ARMSubtarget.cpp. Using 16 byte alignment exposes an issue in code generation in which a varargs function leaves a 4 byte gap between the values of r1-r3 saved to the stack and the following arguments that were passed on the stack. (Previously, this code only needed to support 4 byte and 8 byte alignment.) With this issue, llc generated: varargs_func: sub sp, sp, #16 push {lr} sub sp, sp, #12 add r0, sp, #16 // Should be 20 stm r0, {r1, r2, r3} ldr r0, .LCPI0_0 // Address of va_list add r1, sp, #16 str r1, [r0] bl external_func Fix the bug by checking for "Align > 4". Also simplify the code by using OffsetToAlignment(), and update comments. Differential Revision: http://llvm-reviews.chandlerc.com/D2677 llvm-svn: 201497
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud