summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-06-14 01:37:52 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-06-14 01:37:52 +0000
commiteb7fab61bdaaffd7a798650b400e7ad82e91c41f (patch)
tree33a2701448853e174cff63ce972ef02eefb6791d /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent45d8c12b6862a569e0066f9e8e682ee1d6f09ff7 (diff)
downloadbcm5719-llvm-eb7fab61bdaaffd7a798650b400e7ad82e91c41f.tar.gz
bcm5719-llvm-eb7fab61bdaaffd7a798650b400e7ad82e91c41f.zip
The LLVM IR representation of byval arguments has a rather strange property: if the alignment of an argument to a call is less than the specified byval alignment for that argument, there is no way to specify the alignment of the implied copy. Therefore, we must ensure that the alignment of the argument is at least the byval alignment. To do this, we have to mess with the alignment of relevant alloca's in some cases, and insert a copy that conceptually shouldn't be necessary in some cases.
This patch tries relatively hard to avoid creating an extra copy if it can be avoided (see test3 in the included testcase), but it is not possible to avoid in some cases (like test2 in the included testcase). rdar://9483886 llvm-svn: 132957
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud