Skip to content

Miscompilation of libcore with -Zmir-opt-level=3 #108166

Closed
@bjorn3

Description

@bjorn3

Compile the standard library with -Zmir-opt-level=3 and then running libcore's test suite with this version of the standard library results in several tests failing. I am seeing this on cg_clif's CI (https://github.com/bjorn3/rustc_codegen_cranelift/actions/runs/4203400456/jobs/7292743420) but I expect it to be reproducible using LLVM too.

Meta

Last known good version: rustc 1.69.0-nightly (065852def 2023-02-13)

First known bad version:

rustc 1.69.0-nightly (9a7cc6c32 2023-02-16)
binary: rustc
commit-hash: 9a7cc6c32f1a690f86827e4724bcda85e506ef35
commit-date: 2023-02-16
host: aarch64-unknown-linux-gnu
release: 1.69.0-nightly
LLVM version: 15.0.7

Regression range: 065852d...9a7cc6c

#107449 stands out as a changed MIR opt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-mir-optArea: MIR optimizationsC-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions