about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-05-30 10:31:10 +0000
committerbors <bors@rust-lang.org>2023-05-30 10:31:10 +0000
commitafe578791ad5325fe520d673cb666e7a6ac5487a (patch)
treeee8c9213cf5a6a1591e6c1366ff47a1be590a7ee /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
parentd9d12d7c369f96e76bbe93224d8774a333c4b1b1 (diff)
parent80efecf18caf639184315645f3abdae19e3ee5af (diff)
downloadrust-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