Skip to content

llc doesn't output anything when used with -stop-after/-stop-beforeΒ #67567

@danilaml

Description

@danilaml

https://github.com/llvm/llvm-project/blob/9eeb0293e27c0f1b44304fd9681dcd88fd9edc0a/llvm/docs/MIRLangRef.rst#mir-testing-guide

Uses this command as an example to produce .mir:
llc -stop-after=machine-cp bug-trigger.ll > test.mir

However, when I try it, llc produces empty stdout. I have to pass an output file explicitly for it to work, i.e.
llc -stop-after=machine-cp bug-trigger.ll -o test.mir

Creating an issue, because I'm not sure if this was an intentional change (in which cases the docs need to be updated) or not (in which case it needs to be fixed).

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