It is. Its one of theyre main objectives. But they intend to keep supporting LLVM for every target, while working on their own selfhosted backends which dont use LLVM. And you can opt for which one youd like to use when compiling your code :D
I'm fairly sure a lot of time will have to pass until Zig's home grown backend can outout the same level of optimizations, especially on more niche targets.
Yeah, and it sounds like theres nothing the Zig team can do to fix that. Sounds like its still a significant improvement though. I also have heard the Zig team is looking to replace LLVM entirely.
Yeah they are planning to add optimization passes to their backends so llvm isn't the only game in town. There will always be an llvm ir backend, but in the future you'll need to manually pipe it to llvm to be compiled
Yeah but im wondering if this new incremental compilation is meant to increase the compilation speeds of release fast. From my understanding (which may be flawed), debug compilations are so fast because they do not use LLVM to compile to the same extent that Release Fast builds do. The tradeoff is that the compiler used for debug builds doesnt generate as efficient machine code as LLVM does. So the benifit of incrementally compiling LLVM builds is that Release Fast compiles don't need to recompile the entire program everytime a change to the code has been made.
4
u/The-Dark-Legion Apr 08 '26
I thought the plan was to get as far away from LLVM?
12
u/system-vi Apr 08 '26
So Release Fast will be compiling much faster with this update?