The effects of subgrid models on the properties of giant molecular clouds in galaxy formation simulations