Skip to content

Why llvm doesn't has the [target-independent] promote alloca from loop pass? #163513

@zhaosiying12138

Description

@zhaosiying12138

I know NVPTX has implemented an llvm/lib/Target/NVPTX/NVPTXAllocaHoisting.cpp pass which can promote a compile-time-known-sized alloca op from the loop to entry bb, I think it is a very common feature, why it cannot have a target-independent version?

If it can't, would you please tell me the reason, or, I will try to commit a PR implemented by me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    llvm:irquestionA 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