]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #97863 - JakobDegen:bitset-choice, r=nnethercote
authorbors <bors@rust-lang.org>
Fri, 17 Jun 2022 07:35:22 +0000 (07:35 +0000)
committerbors <bors@rust-lang.org>
Fri, 17 Jun 2022 07:35:22 +0000 (07:35 +0000)
`BitSet` related perf improvements

This commit makes two changes:
 1. Changes `MaybeLiveLocals` to use `ChunkedBitSet`
 2. Overrides the `fold` method for the iterator for `ChunkedBitSet`

I have local benchmarks verifying that each of these changes individually yield significant perf improvements to #96451 . I'm hoping this will be true outside of that context too. If that is not the case, I'll try to gate things on where they help as needed

r? `@nnethercote` who I believe was working on closely related things, cc `@tmiasko` because of the destprop pr

1  2 
compiler/rustc_mir_dataflow/src/impls/liveness.rs
compiler/rustc_mir_transform/src/generator.rs