[llvm-commits] Slot alignment
Mon P Wang
wangmp at apple.com
Tue Jul 1 18:38:14 PDT 2008
Hi,
The following small patch is to fix a problem when we have to
EmitStackConvert. It is possible that two types of the same size may
have different alignment (e.g., users may specify a stricter alignment
than native or vector types may have stricter alignment than a scalar
of the same size). If one ever tries to do stack convert of this, we
create a stack slot with the alignment of the destination and we can
generate a load/store with greater alignment than the stack slot that
we have created. The following patch generates a StackSlot with the
minimum alignment necessary for both the source and the destination
type. If you have any comments, please let me know.
-- Mon Ping
-------------- next part --------------
A non-text attachment was scrubbed...
Name: slot_align.patch
Type: application/octet-stream
Size: 4340 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20080701/3466a5b2/attachment.obj>
More information about the llvm-commits
mailing list