I have no experience with LLVM internals, but couldn&#x27;t you split up the code and disable some of LLVM&#x27;s optimizations on blocks defined by the programmer?<p>Or do you have to pass the entire program at once to LLVM? Maybe the ability to disable optimizations only on certain functions is possible, idk, but I think it certainly would be nice.