Skip to content

ssa-range-prop: fix ICE when encountering self-domiating bb#156001

Merged
rust-bors[bot] merged 2 commits intorust-lang:mainfrom
Human9000-bit:ssa-range-prop-155836
May 1, 2026
Merged

ssa-range-prop: fix ICE when encountering self-domiating bb#156001
rust-bors[bot] merged 2 commits intorust-lang:mainfrom
Human9000-bit:ssa-range-prop-155836

Conversation

@Human9000-bit
Copy link
Copy Markdown
Contributor

@Human9000-bit Human9000-bit commented Apr 30, 2026

  • Add strictly_dominates method
  • fix ice in ssa-range-prop

Fixes #155836

r? dianqk

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 30, 2026

Some changes occurred to MIR optimizations

cc @rust-lang/wg-mir-opt

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Apr 30, 2026
/// e.g. small loops like in `a`

//@ compile-flags: -Copt-level=2
//@ check-pass
Copy link
Copy Markdown
Member

@dianqk dianqk Apr 30, 2026

Choose a reason for hiding this comment

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

Suggested change
//@ check-pass
//@ build-pass

View changes since the review

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

sure!

@Human9000-bit Human9000-bit force-pushed the ssa-range-prop-155836 branch from 702e0b7 to 80c5d47 Compare May 1, 2026 06:10
Copy link
Copy Markdown
Member

@dianqk dianqk left a comment

Choose a reason for hiding this comment

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

@dianqk
Copy link
Copy Markdown
Member

dianqk commented May 1, 2026

@bors r+

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented May 1, 2026

📌 Commit 80c5d47 has been approved by dianqk

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 1, 2026
Comment thread tests/ui/mir/ssa-range-prop-bb-self-domination.rs
It used to ICE when hitting an `assert_ne!(location.block, successor.block` due
to hitting a self-dominating bb

Fixed by checking *strict* domination instead of normal one
@Human9000-bit Human9000-bit force-pushed the ssa-range-prop-155836 branch from 80c5d47 to d3d6c12 Compare May 1, 2026 10:21
@rust-bors rust-bors Bot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels May 1, 2026
@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented May 1, 2026

⚠️ A new commit d3d6c126d36a7f772b595311368d7fcf51447cad was pushed.

This pull request was unapproved.

@dianqk
Copy link
Copy Markdown
Member

dianqk commented May 1, 2026

@bors r+

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented May 1, 2026

📌 Commit d3d6c12 has been approved by dianqk

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels May 1, 2026
rust-bors Bot pushed a commit that referenced this pull request May 1, 2026
…uwer

Rollup of 9 pull requests

Successful merges:

 - #149637 (Do not run jump-threading for GPUs)
 - #154971 (Verify that penultimate segment of enum variant path refers to enum if it has args)
 - #155186 (Avoid loop_match self-assignment in MIR lowering)
 - #155948 (Fix order-dependent visibility diagnostics)
 - #156001 (ssa-range-prop: fix ICE when encountering self-domiating bb)
 - #155600 (Adds a couple UI tests for polonius)
 - #155995 (-Zembed-source: also embed external source)
 - #156019 (Feed cleanups)
 - #156031 (Return a single diagnostic from `lex_token_trees`.)
@rust-bors rust-bors Bot merged commit 7bea50b into rust-lang:main May 1, 2026
11 checks passed
@rustbot rustbot added this to the 1.97.0 milestone May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ICE]: ssa_range_prop.rs:168:25: assertion left != right failed on opt-level 2

4 participants