Skip to content

How to get all fine grained optimization options of the LLVM optimizer opt -Ox (O1/O2/Os/O3...) #130885

@cpython-java

Description

@cpython-java

I found an opt-Ox bug, but I don't know which optimization step is causing the bug, in order to figure this out, I need to know all the fine-grained optimization options for opt-Ox, and then verify which optimization step the bug is in by trying to disable some of the fine-grained options.

I tried one way:

opt -Ox -debug -debug-pass=Arguments

However, this command does not work with all versions of opt, for some versions of opt it will report errors, and even for versions that do not report errors, I am not sure whether the output of this command is all optimization options and does not include non-optimization necessary execution options.

Hope a friend can help me!

Metadata

Metadata

Assignees

No one assigned

    Labels

    llvm:optimizationsquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions