But a big problem is that inlining seems to be done only inside one module and not across modules which makes modules with something like small helper or math functions which are used across different modules senseless.
Yeah, I think so as well as each module is compiled separately.Nevertheless my patch lists functions that aren't used in the same module. Maybe I've missed something.
