about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src/constant.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-07-08 01:19:32 +0000
committerbors <bors@rust-lang.org>2024-07-08 01:19:32 +0000
commitb1de36ff34a4fe4ba820f195481a13aee74e1358 (patch)
treec33702dc997f7585ecd8c7423179f9bb77335cd0 /compiler/rustc_codegen_cranelift/src/constant.rs
parent89aefb9c53090851be903b5a9171a2efdc3fd16f (diff)
parent0184c6f52e727f1ac3053f6abb5b25b38d4ab045 (diff)
downloadrust-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