Y Song <ys114...@gmail.com> wrote: > On Mon, Jul 3, 2017 at 8:23 PM, Nadav Amit via iovisor-dev > <iovisor-dev@lists.iovisor.org> 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. _______________________________________________ iovisor-dev mailing list iovisor-dev@lists.iovisor.org https://lists.iovisor.org/mailman/listinfo/iovisor-dev