diff options
| author | bors <bors@rust-lang.org> | 2024-07-08 01:19:32 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-07-08 01:19:32 +0000 |
| commit | b1de36ff34a4fe4ba820f195481a13aee74e1358 (patch) | |
| tree | c33702dc997f7585ecd8c7423179f9bb77335cd0 /compiler/rustc_codegen_cranelift/src/constant.rs | |
| parent | 89aefb9c53090851be903b5a9171a2efdc3fd16f (diff) | |
| parent | 0184c6f52e727f1ac3053f6abb5b25b38d4ab045 (diff) | |
| download | rust-b1de36ff34a4fe4ba820f195481a13aee74e1358.tar.gz rust-b1de36ff34a4fe4ba820f195481a13aee74e1358.zip | |
Auto merge of #127421 - cjgillot:cache-iter, r=fmease
Cache hir_owner_nodes in ParentHirIterator. Lint level computation may traverse deep HIR trees using that iterator. This calls `hir_owner_nodes` many times for the same HIR owner, which is wasterful. This PR caches the value to allow a more efficient iteration scheme. r? ghost for perf
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/constant.rs')
0 files changed, 0 insertions, 0 deletions
