Skip to content

Easiest way to force inline every function other than entry? (LLVM12) #139831

Open
@alexthomasv

Description

@alexthomasv

Is there an easy way to inline every single function except entry? You can assume there is no recursion. Currently I have an LLVM file that has the attributes noinline, and I attempted to forcibly remove each one using

opt-12 -force-remove-attribute=noinline -force-remove-attribute=optnone -forceattrs test_opt.bc

but this didn't actually change any of the attributes. After this, my plan was to force every function to have always-inline, but I can't even remove the noinline attributes of my program first. What's the best way to inline every single function except entry? Thank you!

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