diff options
| author | bors <bors@rust-lang.org> | 2023-05-30 10:31:10 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-05-30 10:31:10 +0000 |
| commit | afe578791ad5325fe520d673cb666e7a6ac5487a (patch) | |
| tree | ee8c9213cf5a6a1591e6c1366ff47a1be590a7ee /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff | |
| parent | d9d12d7c369f96e76bbe93224d8774a333c4b1b1 (diff) | |
| parent | 80efecf18caf639184315645f3abdae19e3ee5af (diff) | |
| download | rust-afe578791ad5325fe520d673cb666e7a6ac5487a.tar.gz rust-afe578791ad5325fe520d673cb666e7a6ac5487a.zip | |
Auto merge of #111768 - oli-obk:pair_const_llvm, r=cjgillot
Optimize scalar and scalar pair representations loaded from ByRef in llvm in https://github.com/rust-lang/rust/pull/105653 I noticed that we were generating suboptimal LLVM IR if we had a `ConstValue::ByRef` that could be represented by a `ScalarPair`. Before https://github.com/rust-lang/rust/pull/105653 this is probably rare, but after it, every slice will go down this suboptimal code path that requires LLVM to untangle a bunch of indirections and translate static allocations that are only used once to read a scalar pair from.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions
