Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement mem2reg? #372

Open
oflatt opened this issue Feb 21, 2024 · 0 comments
Open

Implement mem2reg? #372

oflatt opened this issue Feb 21, 2024 · 0 comments

Comments

@oflatt
Copy link
Member

oflatt commented Feb 21, 2024

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

@oflatt oflatt changed the title Implement mem2reg Implement mem2reg? Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant