diff options
| author | bors <bors@rust-lang.org> | 2020-08-05 06:55:42 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-08-05 06:55:42 +0000 |
| commit | 7f8ff84b510e3ff04865cfdd5ef95e677227e0c8 (patch) | |
| tree | 4222d73f17679d9387b818ac94f7399103bdf062 /src/test/codegen/src-hash-algorithm | |
| parent | dab2ae0404014b4fbc5a32a8c954fe6068b25f71 (diff) | |
| parent | 63fadee21f4d3d7a07381dafc6cd2dfd644b5b02 (diff) | |
| download | rust-7f8ff84b510e3ff04865cfdd5ef95e677227e0c8.tar.gz rust-7f8ff84b510e3ff04865cfdd5ef95e677227e0c8.zip | |
Auto merge of #75155 - davidtwco:polymorphization-incr-comp-optimisations, r=lcnr
polymorphization: various improvements
This PR includes a handful of polymorphisation-related changes:
- @Mark-Simulacrum's suggestions [from this comment](https://github.com/rust-lang/rust/pull/74633#issuecomment-668684433):
- Use a `FiniteBitSet<u32>` over a `FiniteBitSet<u64>` as most functions won't have 64 generic parameters.
- Don't encode polymorphisation results in metadata when every parameter is used (in this case, just invoking polymorphisation will probably be quicker).
- @lcnr's suggestion [from this comment](https://github.com/rust-lang/rust/pull/74717#discussion_r463690015).
- Add an debug assertion in `ensure_monomorphic_enough` to make sure that polymorphisation did what we expect.
r? @lcnr
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
