This patch moves registering HeapToShared to only occur in the module pass.
This does nothing if run outside of the module pass because it requires intact
call sites and all the analysis we can do has already been done.
Details
Details
- Reviewers
jdoerfert
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
We should instead keep noinline on them till the CGSCC pass, at least for this one as it could trigger late even if it wasn't possible early.
Comment Actions
But we run the Module pass and CGSCC passes at different optimization levels right now. It's possible that H2S could remove something after more optimizations, but I haven't seen any examples of something failing to be moved to the stack because of optimizations.
Comment Actions
not inlining alloc_shared/free_shared is probably not a real concern, it's slow either way.