Files
rust/compiler/rustc_codegen_llvm/src
Martin Nordholts 5ad2f434dc rustc_codegen_llvm: Require opt-level >= 1 for index-based loop
To make debugger stepping intuitive with `-Copt-level=0`. See the
adjusted `basic-stepping.rs` test.

This is kind of a revert of bd0aae92dc, except we don't revert it,
we just make it conditional on `opt-level`. That commit regressed
`basic-stepping.rs`, but it was not noticed since that test did not
exist back then. I have retroactively bisected to find that out.

It seems messy to sprinkle if-cases inside of the
`write_operand_repeatedly()` so make the whole function conditional.

The test that bd0aae92dc added in
`tests/codegen/issues/issue-111603.rs` already use `-Copt-level=3`, so
we don't need to adjust the compiler flags for it to keep passing.
2025-11-13 06:29:55 +01:00
..
2025-11-06 13:20:12 +01:00
2025-11-11 18:34:47 -05:00
2025-10-15 20:06:46 -04:00
2025-11-04 21:27:22 -05:00
2025-11-11 18:55:40 -05:00
2025-11-11 18:55:40 -05:00
2025-11-11 18:55:40 -05:00
2025-11-04 21:27:22 -05:00
2025-11-11 18:22:38 -05:00