I think that we currently always generate the same prologue and epilogue, regardless of whether or not that function calls anything or not. We can probably omit some of that code for functions that call nothing, which I would expect would be a win at least for some Wasm code.
<rdar://problem/91994888>