about summary refs log tree commit diff
path: root/compiler/rustc_mir_dataflow/src/impls/initialized.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-01-11 06:33:55 +0000
committerbors <bors@rust-lang.org>2025-01-11 06:33:55 +0000
commit7e4077d06fc073442c567d58885b47ed2c5121b8 (patch)
treea50362290435925686740906726a1d3ec8f927fd /compiler/rustc_mir_dataflow/src/impls/initialized.rs
parenta2d7c8144f3f237612b37420fe2b6b08408d5b1d (diff)
parenta285d202cf2ea695751e127ac0b2e0664bbd98f3 (diff)
downloadrust-7e4077d06fc073442c567d58885b47ed2c5121b8.tar.gz
rust-7e4077d06fc073442c567d58885b47ed2c5121b8.zip
Auto merge of #135274 - saethlin:array-repeats, r=compiler-errors
Add an InstSimplify for repetitive array expressions

I noticed in https://github.com/rust-lang/rust/pull/135068#issuecomment-2569955426 that GVN's implementation of this same transform was quite profitable on the deep-vector benchmark. But of course GVN doesn't run in unoptimized builds, so this is my attempt to write a version of this transform that benefits the deep-vector case and is fast enough to run in InstSimplify.

The benchmark suite indicates that this is effective.
Diffstat (limited to 'compiler/rustc_mir_dataflow/src/impls/initialized.rs')
0 files changed, 0 insertions, 0 deletions