Skip to content

More aggressive inlining and slightly reworked pass pipeline again #1135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 59 commits into from
Mar 13, 2020
Merged

More aggressive inlining and slightly reworked pass pipeline again #1135

merged 59 commits into from
Mar 13, 2020

Conversation

MaxGraey
Copy link
Member

No description provided.

@MaxGraey MaxGraey changed the title Tuning params for inline passes Tune params for inline passes Feb 29, 2020
cli/asc.js Outdated
if (optimizeLevel >= 2 && shrinkLevel === 0) {
module.setAlwaysInlineMaxSize(12);
module.setFlexibleInlineMaxSize(60);
module.setOneCallerInlineMaxSize(60);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would be the downside of making OneCallerInlineMaxSize basically unlimited? Just curious :)

Copy link
Member Author

@MaxGraey MaxGraey Feb 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Infinite code size? =) Basically it significantly increase build speed. Also it could even slowdown code due to inline huge functions will increase register pressure and stack usage on target platform

@MaxGraey MaxGraey changed the title Tune params for inline passes More aggressive inlining and slightly revorked pass pipeline again Mar 1, 2020
@MaxGraey MaxGraey changed the title More aggressive inlining and slightly revorked pass pipeline again More aggressive inlining and slightly reworked pass pipeline again Mar 1, 2020
@dcodeIO dcodeIO merged commit c771461 into AssemblyScript:master Mar 13, 2020
@MaxGraey MaxGraey deleted the inline-tuning branch March 13, 2020 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants