diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-03-13 06:41:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-13 06:41:21 +0100 |
| commit | e6ba504029792871ce9ddc3d74e99316d7b64b5c (patch) | |
| tree | b266ca87289443baf1a3ed87180cc7e86df9fc5b /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 1b198ba9fe4e1af377cd0550790859b2273add3f (diff) | |
| parent | d46ff6415c033ccfebac3d2a757908611a67d324 (diff) | |
| download | rust-e6ba504029792871ce9ddc3d74e99316d7b64b5c.tar.gz rust-e6ba504029792871ce9ddc3d74e99316d7b64b5c.zip | |
Rollup merge of #121908 - Nadrieril:dynamic-variant-collection, r=matthewjasper
match lowering: don't collect test alternatives ahead of time I'm very happy with this one. Before this, when sorting candidates into the possible test branches, we manually computed `usize` indices to determine in which branch each candidate goes. To make this work we had a first pass that collected the possible alternatives we'd have to deal with, and a second pass that actually sorts the candidates. In this PR, I replace `usize` indices with a dedicated enum. This makes `sort_candidates` easier to follow, and we don't need the first pass anymore. r? ``@matthewjasper``
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
