Skip to content

Miscompilation in Machine Copy Propagation on AArch64 #144823

Open
@saethlin

Description

@saethlin

This is a reduced output from a fuzzer that generates Rust MIR, https://github.com/cbeuw/rustlantis

I've been running rustlantis using a rustc built against the tip of LLVM's main branch. This example compiles fine on Rust nightly:
https://godbolt.org/z/oWzs5PM19
Use the flags
-Zmir-opt-level=0 -Copt-level=3 -Cno-prepopulate-passes

Some -opt-bisect-limit indicates that compilation goes awry in Machine Copy Propagation. Since this is a recent regression, I think the cause is somehow related to #140267 (of course I have no idea whether that PR added a bug or made it easier for rustlantis to hit an existing one).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions