Skip to content

Commit

Permalink
Auto merge of #135274 - saethlin:array-repeats, r=compiler-errors
Browse files Browse the repository at this point in the history
Add an InstSimplify for repetitive array expressions

I noticed in rust-lang/rust#135068 (comment) 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.
  • Loading branch information
bors committed Jan 11, 2025
2 parents 157a81d + 6b0589e commit d8c92dc
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit d8c92dc

Please sign in to comment.