rustc can not inline simple for-loop when arm neon is enabled #102220
Labels
A-autovectorization
Area: Autovectorization, which can impact perf or code size
A-codegen
Area: Code generation
A-SIMD
Area: SIMD (Single Instruction Multiple Data)
A-target-feature
Area: Enabling/disabling target features like AVX, Neon, etc.
C-bug
Category: This is a bug.
O-Arm
Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
https://rust.godbolt.org/z/PfGvMaK4f
I expected to see this happen: The for-loop should be inlined.
Instead, this happened: I see the symbol
<core::ops::range::Range<T> as core::iter::range::RangeIteratorImpl>::spec_next
in the asm output.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: