Skip to content

LLVM error when optimizations are turned off #1

Closed
@dylanmckay

Description

@dylanmckay

When using rustc to compile for the AVR target, an LLVM error is generated:

LLVM ERROR: regalloc=... not currently supported with -O0

Which can be tracked back to llvm/lib/CodeGen/LiveVariables.cpp:635. There is a note at this line mentioning that this bug is an artifact of 'bizarre pass dependencies' and that it should be fixed. This leads me to believe that this error can be solved by either writing the fix specified on the aforementioned line, or simply changing the order in which Rust adds LLVM passes.

The AVR LLVM backend can successfully generate executables on its own (using llc), and so this bug must lay in Rust itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions