Bad size_hint() for Range<i64> on powerpc64le #72023
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.
O-PowerPC
Target: PowerPC processors
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this, which does work in debug mode:
But in release mode, this happened:
However, it does work in release mode if that
start < len
assertion is uncommented.Meta
This is not new -- it comes from a failure noted in rayon-rs/rayon#585 in July 2018, which unfortunately I forgot to followup on until now. It's fine on x86_64, so it seems like an arch-specific codegen issue, most likely down to LLVM.
The text was updated successfully, but these errors were encountered: