If I had the kind of funding that the AI companies get, I could write a deterministic, provably correct, optimising source-to-source compiler from any language to any language, without any need for LLMs. It would use no more resources than an ordinary compiler.
I could even write such a compiler from say Fortran to Rust with hardly any funding, even a proof-carrying one.
This reminds me of a PhD student at a progression viva explaining how he trained an LLM to convert an AST back into source code. I pointed out that's what a pretty-printer did, and he was nonplussed.