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

Don't insert truncation within phi blocks #162

Merged
merged 5 commits into from
Jun 15, 2023
Merged

Don't insert truncation within phi blocks #162

merged 5 commits into from
Jun 15, 2023

Conversation

oxinabox
Copy link
Member

@oxinabox oxinabox commented Jun 14, 2023

This goes along with making diffractor follow this rule:
JuliaLang/julia#50158

The hard bit of this PR was writing the test. But now I know kinda how phi-nodes work.

@Keno
Copy link
Collaborator

Keno commented Jun 14, 2023

Idea looks right. Algorithm for check the bb needs to be updated as suggested, otherwise looks fine.

src/stage1/compiler_utils.jl Outdated Show resolved Hide resolved
Copy link
Collaborator

@Keno Keno left a comment

Choose a reason for hiding this comment

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

LGTM, modulo comment

@oxinabox
Copy link
Member Author

Elliot bisected CI being broken to JuliaLang/julia@9d839f9

@codecov
Copy link

codecov bot commented Jun 15, 2023

Codecov Report

Patch coverage: 84.61% and project coverage change: +0.71 🎉

Comparison is base (10cef62) 51.68% compared to head (f4a82c8) 52.40%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #162      +/-   ##
==========================================
+ Coverage   51.68%   52.40%   +0.71%     
==========================================
  Files          27       27              
  Lines        2693     2704      +11     
==========================================
+ Hits         1392     1417      +25     
+ Misses       1301     1287      -14     
Impacted Files Coverage Δ
src/codegen/forward_demand.jl 44.95% <66.66%> (+6.70%) ⬆️
src/stage1/compiler_utils.jl 95.23% <90.00%> (+1.48%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Keno Keno merged commit 022865e into main Jun 15, 2023
@oscardssmith oscardssmith deleted the ox/phifix branch June 15, 2023 05:14
oxinabox added a commit that referenced this pull request Jul 11, 2023
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