Bad code generation for something that should be a simple memcpy #47997
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
I-slow
Issue: Problems and improvements with respect to performance of generated code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
It seems the compiler only detects a 16-byte copy, but not a 4-byte copy. Also it doesn't detect a 16-byte copy across function boundaries, and does very weird stuff instead.
Rust example code:
Code generated in release mode from playground:
The text was updated successfully, but these errors were encountered: