-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
base: main
Are you sure you want to change the base?
Conversation
// debug_assert!(na.pre_number != 0); | ||
// debug_assert!(nb.pre_number != 0); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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`
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
Mentioned in #7954, attempted in #8535, reattempted in this pr.
Draft first for ci pipeline. Possible rebase for better commit msg