Repository navigation
Remove redundant vec and duplicate indexing in find_noop_landing_pads - #164934
Conversation
|
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
|
r? @mati865 rustbot has assigned @mati865. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
|
r=me after squashing @bors delegate+ |
|
✌️ @panstromek, you can now approve this pull request! If @hanna-kruppe told you to " |
6197c3f to
1744ae8
Compare
|
The CI failure should be solved by #164929 |
|
Thanks! @bors r=hanna-kruppe |
This comment has been minimized.
This comment has been minimized.
|
❌ Commit 1744ae8 has been unapproved due to PR CI failure. Reapprove it with |
|
@bors r+ force rollup |
|
On second thought, let’s not take risks by skipping CI when there’s no rush. r=me when CI is fixed, until then @bors r- |
|
This pull request was unapproved. |
|
I think this should be fine now, the gcc revert was merged. @bors r=hanna-kruppe |
|
❌ Cannot approve commit 1744ae8, because CI currently fails on this PR. Use |
1744ae8 to
ecf1622
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
ok, I rebased to trigger CI again @bors r=hanna-kruppe |
…ds, r=hanna-kruppe Remove redundant vec and duplicate indexing in find_noop_landing_pads The original code looks like some refactoring artifact. The `map().collect()` chain is redundant because the `vec` is immediately turned into iterator again, and it throws away the `BasicBlockData` reference just to look it up again in the main loop.
…uwer Rollup of 8 pull requests Successful merges: - #164955 (Use the updated buffer length in UEFI locate_handles) - #164958 (uefi: roll back env changes when `start_image` fails) - #164968 (thread_local::guard: update comments a bit) - #164303 (Remove the 'sub' method from 'At' and migrate to 'sub_raw') - #164674 (Use a NoSpan marker for region constraints without spans) - #164856 (Switch from `insta` to `expect-test` in bootstrap) - #164934 (Remove redundant vec and duplicate indexing in find_noop_landing_pads) - #164954 (Reduce `SpanData` use)
…uwer Rollup of 8 pull requests Successful merges: - #164955 (Use the updated buffer length in UEFI locate_handles) - #164958 (uefi: roll back env changes when `start_image` fails) - #164968 (thread_local::guard: update comments a bit) - #164303 (Remove the 'sub' method from 'At' and migrate to 'sub_raw') - #164674 (Use a NoSpan marker for region constraints without spans) - #164934 (Remove redundant vec and duplicate indexing in find_noop_landing_pads) - #164954 (Reduce `SpanData` use) - #164970 (`rust-analyzer` subtree update)
Rollup merge of #164934 - panstromek:cleanup-noop-landing-pads, r=hanna-kruppe Remove redundant vec and duplicate indexing in find_noop_landing_pads The original code looks like some refactoring artifact. The `map().collect()` chain is redundant because the `vec` is immediately turned into iterator again, and it throws away the `BasicBlockData` reference just to look it up again in the main loop.
The original code looks like some refactoring artifact. The
map().collect()chain is redundant because thevecis immediately turned into iterator again, and it throws away theBasicBlockDatareference just to look it up again in the main loop.