Skip to content
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

fix: reorder compilation of branches in stmt.py #3603

Merged
merged 3 commits into from
Oct 17, 2023

Conversation

charles-cooper
Copy link
Member

the if and else branches were being allocated out-of-source-order. this commit switches the order of compilation of the if and else branches to be in source order. this is a hygienic fix, there should be no observable changes as right now the only thing that should be affected is the memory allocator. (but if more side effects are ever introduced in codegen, the existing code might compile the side effects out of order).

What I did

How I did it

How to verify it

Commit message

Commit message for the final, squashed PR. (Optional, but reviewers will appreciate it! Please see our commit message style guide for what we would ideally like to see in a commit message.)

Description for the changelog

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

the if and else branches were being allocated out-of-source-order. this
commit switches the order of compilation of the if and else branches to
be in source order. this is a hygienic fix, right now the only thing
that should be affected is the memory allocator (but if more side
effects are ever introduced in codegen, the existing code might compile
the side effects out of order).
@codecov-commenter
Copy link

codecov-commenter commented Sep 14, 2023

Codecov Report

Merging #3603 (ffbc503) into master (1711569) will increase coverage by 0.01%.
Report is 1 commits behind head on master.
The diff coverage is 100.00%.

❗ Current head ffbc503 differs from pull request most recent head 05819dd. Consider uploading reports for the commit 05819dd to get more accurate results

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff             @@
##           master    #3603      +/-   ##
==========================================
+ Coverage   89.12%   89.13%   +0.01%     
==========================================
  Files          86       85       -1     
  Lines       11407    11390      -17     
  Branches     2595     2591       -4     
==========================================
- Hits        10166    10152      -14     
+ Misses        819      816       -3     
  Partials      422      422              
Files Changed Coverage Δ
vyper/codegen/stmt.py 89.84% <100.00%> (-0.08%) ⬇️

... and 8 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@charles-cooper charles-cooper merged commit 74a8e02 into vyperlang:master Oct 17, 2023
83 checks passed
@charles-cooper charles-cooper deleted the fix/if-allocation branch October 17, 2023 16:23
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