-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Wrapper generates more instructions for simple integer operations #119520
Copy link
Copy link
Closed
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.Category: This is a bug.I-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.P-mediumMedium priorityMedium priorityregression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Metadata
Metadata
Assignees
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.Category: This is a bug.I-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.P-mediumMedium priorityMedium priorityregression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Code
I tried this code (godbolt):
I expected to see this happen: both functions compile to identical assembly
Instead, this happened:
wrappedcontains way more instructions:Version it worked on
It most recently worked on: 1.64
Version with regression
rustc --version --verbose:I have bisected it to between 1.64 and 1.65 on Godbolt, and then further with
cargo bisect-rustcwhich points tonightly-2022-08-17(4033686...86c6ebe):Backtrace
Backtrace
@rustbot modify labels: +I-slow +regression-from-stable-to-stable -regression-untriaged