Skip to content

Implement mem2reg? #372

@oflatt

Description

@oflatt

One of LLVM's important optimizations is mem2reg, which turns memory writes and reads into register writes and reads.
Here's a good example:
https://blog.matthieud.me/2020/exploring-clang-llvm-optimization-on-programming-horror/

LLVM Pass
https://github.com/llvm/llvm-project/blob/main/mlir/lib/Transforms/Mem2Reg.cpp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions