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

#7954 alias analysis attempt #9213

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

badumbatish
Copy link

Mentioned in #7954, attempted in #8535, reattempted in this pr.

Draft first for ci pipeline. Possible rebase for better commit msg

@badumbatish badumbatish marked this pull request as ready for review September 7, 2024 21:09
@badumbatish badumbatish requested a review from a team as a code owner September 7, 2024 21:09
@badumbatish badumbatish requested review from elliottt and removed request for a team September 7, 2024 21:09
@github-actions github-actions bot added the cranelift Issues related to the Cranelift code generator label Sep 10, 2024
Comment on lines +485 to +486
// debug_assert!(na.pre_number != 0);
// debug_assert!(nb.pre_number != 0);
Copy link
Member

Choose a reason for hiding this comment

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

Does the test suite pass with these assertions uncommented? You're testing nb explicitly for being unreachable on line 491, so I'm guessing that at least that one doesn't pass?

Copy link
Author

@badumbatish badumbatish Sep 26, 2024

Choose a reason for hiding this comment

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

hi Elliot, one of the test suite failed with this assertion. Here is the summary of the test suite through local ci:

failures:

---- dominator_tree::tests::unreachable_node stdout ----
thread 'dominator_tree::tests::unreachable_node' panicked at cranelift/codegen/src/dominator_tree.rs:486:9:
assertion failed: nb.pre_number != 0


failures:
    dominator_tree::tests::unreachable_node

test result: FAILED. 187 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.21s

error: test failed, to rerun pass `-p cranelift-codegen --lib`

cranelift/codegen/src/dominator_tree.rs Outdated Show resolved Hide resolved
 Changes to be committed:
	modified:   cranelift/codegen/src/alias_analysis.rs: Use
        dominator tree
        modified:   cranelift/codegen/src/context.rs: Use dominator tree
	modified:   cranelift/codegen/src/dominator_tree.rs: Fix
        dominates and computes and modify logic of domination
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cranelift Issues related to the Cranelift code generator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants