Skip to content

Add full expected JS output test_codesize_minimal_O0 #24390

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 1 commit into from
May 21, 2025

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented May 21, 2025

This file will be quite volatile since it will change on almost any
change to the code JS code we generate. However it will make is much
easier to see the effect of changes like #24384.

Also, it should not be any more of less volatile than the existing code
size expectations files and, like those, this file is updated
automatically using the --rebaseline test flag.

@sbc100
Copy link
Collaborator Author

sbc100 commented May 21, 2025

This change is built on top of #24387 .. please just review the second commit.

@sbc100 sbc100 requested a review from RReverser May 21, 2025 20:04
@RReverser
Copy link
Collaborator

This file will be quite volatile since it will change on almost any
change to the code JS code we generate

In other codesize tests we commit JS for optimised files only, so that at least any DCE'd code does not appear in the diffs.

Do you think it's worthwhile to do the same here or is O0 intentional?

This file will be quite volatile since it will change on almost any
change to the code JS code we generate.  However it will make is much
easier to see the effect of changes like emscripten-core#24384.

Also, it should not be any more of less volatile than the existing code
size expectations files and, like those, this file is updated
automatically using the `--rebaseline` test flag.
@sbc100
Copy link
Collaborator Author

sbc100 commented May 21, 2025

This file will be quite volatile since it will change on almost any
change to the code JS code we generate

In other codesize tests we commit JS for optimised files only, so that at least any DCE'd code does not appear in the diffs.

Do you think it's worthwhile to do the same here or is O0 intentional?

I'm doing -O0 intentionally so that the JS is readable.

If figure if we want to see the effect on the generated code and review it that O0 build would be best.

We can extend this it future.

@sbc100 sbc100 force-pushed the expected_js_output branch from 607b9a2 to 17813f3 Compare May 21, 2025 20:46
@RReverser
Copy link
Collaborator

Okay, fine by me, but I'll leave the review to @kripken for one more opinion.

@sbc100 sbc100 requested a review from kripken May 21, 2025 20:54
@sbc100 sbc100 merged commit 769fe3f into emscripten-core:main May 21, 2025
26 of 30 checks passed
@sbc100 sbc100 deleted the expected_js_output branch May 21, 2025 21:35
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.

3 participants