A case of compound x86_64 performance regression caused by LLVM 20 and #124810 #139730
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
C-optimization
Category: An issue highlighting optimization opportunities or PRs implementing such
P-high
High priority
regression-untriaged
Untriaged performance or correctness regression.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
Code
I tried this code:
Cargo.toml
Cargo.lock
Commits used to test:
String::push
andString::insert
#124810) => Second regressionBesides the two direct regressions. The fact that alternating between these two lines may cause
a big difference in performance is curious:
But maybe that's a different issue.
Summary of hyperfine run:
Full numbers
So building with current
nightly
andis almost twice as slow than building with
stable
and usingVersion it worked on
It most recently worked on: 2162e9d
Version with regression
First regression
rustc --version --verbose
:Second regression
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: