Open
Description
https://godbolt.org/z/f3TMe3rcW
good
gets optimal codegen since the LLVM 18 bump, but bad
has had poor codegen for some time. Codegen also becomes optimal if a
and b
are references rather than passed by value.
Metadata
Metadata
Assignees
Labels
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Category: An issue highlighting optimization opportunities or PRs implementing suchIssue: Problems and improvements with respect to performance of generated code.Issue expected to be fixed by the next major LLVM upgrade, or backported fixes