[llvm-commits] Struct-handling patches

Matthijs Kooijman m.kooijman at student.utwente.nl
Wed Oct 1 05:18:32 PDT 2008


Hi Duncan,

> for small structs llvm-gcc should only use a memcpy if the struct has holes.
> Otherwise it generates a field-by-field copy.
I'm working with clang, so not sure how that one handles this. Also, the case
I'm mostly working with, is a struct returning function getting inlined
(resulting in up to two memcpy's in the final function). I don't think that
field-by field copies are used in this case.

Gr.

Matthijs



More information about the llvm-commits mailing list