Skip to content

[NFC] Mark some DAE-internal passes as requiring less work#7858

Merged
kripken merged 3 commits intoWebAssembly:mainfrom
kripken:less.dae
Aug 27, 2025
Merged

[NFC] Mark some DAE-internal passes as requiring less work#7858
kripken merged 3 commits intoWebAssembly:mainfrom
kripken:less.dae

Conversation

@kripken
Copy link
Copy Markdown
Member

@kripken kripken commented Aug 22, 2025

The non-nullable overhead usually doesn't matter, but DAE can end up running
many internal pass iterations, many of whom are very lightweight otherwise,
so this adds up.

On a dart testcase I see, this makes DAE (the slowest pass there) 7% faster.

Helps #4165

@kripken kripken requested a review from tlively August 27, 2025 16:59
std::function<void(Function*)> onChange) {
struct LocalizerPass : public WalkerPass<PostWalker<LocalizerPass>> {
bool isFunctionParallel() override { return true; }
bool requiresNonNullableLocalFixups() override { return false; }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It would be good to add a comment about why this is true, i.e. // Always sets locals immediately before using them.

@kripken kripken merged commit 7156ba3 into WebAssembly:main Aug 27, 2025
16 checks passed
@kripken kripken deleted the less.dae branch August 27, 2025 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants