diff options
author | Jan Voung <jvoung@chromium.org> | 2013-08-30 16:42:36 -0700 |
---|---|---|
committer | Jan Voung <jvoung@chromium.org> | 2013-08-30 16:42:36 -0700 |
commit | 121830a16cdb2685b1ac49bb88407644c044ef30 (patch) | |
tree | 1f8189150dc41b8b29609206cc12246afded44cc /include/llvm/ADT | |
parent | 06bf94d7c3fd693b3c6e3b71178514e5ed59489a (diff) |
Revert some ARM byval localmods since byval+varargs are not in stable pexes.
Localmods came from: https://codereview.chromium.org/10825082/, and earlier.
(1) The original change was so that byval parameters always
go on the stack. That part was added because the original
ARM code was buggy, and did not actually make a copy of the
value, modifying the caller's struct (ouch!).
(2) Then came a localmod to make all arguments following a
byval go on the stack and to make the var-args code aware of
that. This is so that arguments stay in the correct order
for var-args to pick up.
For (1) there has been some work upstream to make it work
better. In any case, clang with --target=armv7a-...-gnueabi
only used byval in some limited cases -- when the size of
the struct is > 64 bytes where the backend will know
that part of it could be in regs, and the rest can be
memcpy'ed to the stack.
For le32, clang will still generate byval without
satisfying the same ARM condition (only for structs
bigger than 64 bytes), so it could be *very bad* if
we didn't have the ABI simpification passes rewrite
the byval and try to let the ARM backend do things
with byval...
TEST=the GCC torture tests: va-arg-4.c, and 20030914-2.c
and the example in issue 2746 still pass.
BUG=none, cleanup
R=dschuff@chromium.org
Review URL: https://codereview.chromium.org/23691009
Diffstat (limited to 'include/llvm/ADT')
0 files changed, 0 insertions, 0 deletions