Meta Large Language Model Compiler: Foundation Models of Compiler Optimization
ai.meta.com
ai.meta.com
This is a risky bet for actual production use. There is no way you can 100% be sure that the generated binary is correct and matching behavior with the original binary. There are cases that don't have unit tests and static analysis and formal verification can't be enough.
Imagine a bug introduced by this that you have no idea where to begin to debug. I guess the best solution is to add a unit test and generate another binary with this system but do we really want to do this?
To use something for this for IR rewriting directly by the model is certainly more risky (it's difficult to guarantee post-rewrite that you would be computing the same thing; at least for compiler passes and optimization options, many of which also perform IR rewrites, the compiler such as LLVM/gcc should already have a huge suite of test coverage anyways).
(I'm not a compiler person but I'm a researcher on the same team at Meta FAIR as the authors)
https://huggingface.co/collections/facebook/llm-compiler-667...