Skip to content

Commit

Permalink
Auto merge of #127024 - cjgillot:jump-prof, r=oli-obk
Browse files Browse the repository at this point in the history
Avoid cloning jump threading state when possible

The current implementation of jump threading passes most of its time cloning its state. This PR attempts to avoid such clones by special-casing the last predecessor when recursing through a terminator.

This is not optimal, but a first step while I refactor the state data structure to be sparse.

The two other commits are drive-by.
Fixes rust-lang/rust#116721

r? `@oli-obk`
  • Loading branch information
bors committed Jun 30, 2024
2 parents f6e1fc8 + c0ed42b commit f583b5b
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit f583b5b

Please sign in to comment.