Re: LLVM backend handling of packed structures

Nadav Amit

Y Song <ys114321@...> wrote:

On Mon, Jul 3, 2017 at 8:23 PM, Nadav Amit via iovisor-dev
<iovisor-dev@...> wrote:
I get a strange phenomenon with packed structs in which each byte is
loaded in a different instruction.
This is expected from current llvm implementation. For unpacked, the
compiler is able to use field natural alignment to decide which load
variant to use.
For packed, the field alignment is assumed to be 1, so it use load-byte.
Thanks! From your response, I would assume the solution is nontrivial.

Join to automatically receive all group messages.