diff options
| author | bors <bors@rust-lang.org> | 2025-04-06 01:45:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-04-06 01:45:33 +0000 |
| commit | 1de931283df18f3af4922fe9a96adcc8936ac42e (patch) | |
| tree | 84126385fac2b3c57bd42f802b7b94680d11ca3b /compiler/rustc_driver_impl/src | |
| parent | c2110769cd58cd3b0c31f308c8cfeab5e19340fd (diff) | |
| parent | 5b596cd28b9ca38f8541aff1b05ec26c6207797b (diff) | |
| download | rust-1de931283df18f3af4922fe9a96adcc8936ac42e.tar.gz rust-1de931283df18f3af4922fe9a96adcc8936ac42e.zip | |
Auto merge of #139411 - yotamofek:pr/mir_transform/instsimplify, r=compiler-errors
In `simplify_repeated_aggregate`, don't test first element against itself r? `@saethlin` Noticed that in `InstSimplifyContext::simplify_repeated_aggregate`, we're accidentally evaluating the first element's value twice, and then comparing it with itself, instead of just checking whether the rest of the elements are equal to the first one. This will probably save very few cycles, but since `InstSimplify` is always enabled, this might improve perf by a bit.
Diffstat (limited to 'compiler/rustc_driver_impl/src')
0 files changed, 0 insertions, 0 deletions
