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 some new-edges issues #56598

Merged
merged 2 commits into from
Nov 20, 2024
Merged

fix some new-edges issues #56598

merged 2 commits into from
Nov 20, 2024

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Nov 18, 2024

  • incorrect edge types were being added from inlining: there is minimal dispatch info available, so best not to add that (which was already added earlier) as it results in failures to validate later
  • MethodTable/sig order in edges could confuse the iterator: always put the type before the edge now as that is more consistent
  • edges wasn't converted to a SimpleVector, so they might get ignored later from being in the wrong format
  • edges were not populated for optimize=false, which made debugging them more inconvenient

Fixes #56577

- incorrect edge types were being added from inlining: there is minimal
  dispatch info available, so best not to add that (which was already
  added earlier) as it results in failures to validate later
- MethodTable/sig order in edges could confuse the iterator: always put
  the type before the edge now as that is more consistent
- edges wasn't converted to a SimpleVector, so they might get ignored
  later from being in the wrong format
- edges were not populated for optimize=false, which made debugging them
  more inconvenient

Fixes #56577
Compiler/src/typeinfer.jl Outdated Show resolved Hide resolved
Co-authored-by: Shuhei Kadowaki <[email protected]>
@vtjnash vtjnash added the merge me PR is reviewed. Merge when all tests are passing label Nov 20, 2024
@vtjnash vtjnash merged commit d9d1fc5 into master Nov 20, 2024
6 of 8 checks passed
@vtjnash vtjnash deleted the jn/56577 branch November 20, 2024 20:17
@DilumAluthge DilumAluthge removed the merge me PR is reviewed. Merge when all tests are passing label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:inference Type inference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

edge creation mistake
3 participants