struct within a struct vs struct with its fields copied

I'm not familiar with how LLVM will optimize or behave given:

struct F { int }

Struct G { int, int }

Struct H { F, int }

Is there a difference between G & H w.r.t to optimizations?

I’m no expert but AFAIK optimizations would depend on how you use G & H.

Jake

Are you starting from C? If yes, TBAA can make a difference.

Joerg