ptr::read() is slower than directly dereferencing #73258
Labels
A-codegen
Area: Code generation
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
C-bug
Category: This is a bug.
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.
compiles to
but replacing
*v
withv.read()
compiles to:
This came up from #71257
The text was updated successfully, but these errors were encountered: