about summary refs log tree commit diff
path: root/compiler/rustc_ast/src/attr/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-06-30 11:09:53 +0000
committerbors <bors@rust-lang.org>2024-06-30 11:09:53 +0000
commit2975a21b5d6e4718cf219349d3cb37d45c20f84d (patch)
tree73f9c1b8471352b9beafd0c83eb3fa762c0f66f5 /compiler/rustc_ast/src/attr/mod.rs
parent716752ebe6974b5c6ab9b34b894e075f3e4a4b1e (diff)
parentc81481fdb91cca96635017e7275139b0f2cd8fe6 (diff)
downloadrust-2975a21b5d6e4718cf219349d3cb37d45c20f84d.tar.gz
rust-2975a21b5d6e4718cf219349d3cb37d45c20f84d.zip
Auto merge of #127024 - cjgillot:jump-prof, r=oli-obk
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 https://github.com/rust-lang/rust/issues/116721

r? `@oli-obk`
Diffstat (limited to 'compiler/rustc_ast/src/attr/mod.rs')
0 files changed, 0 insertions, 0 deletions