nikic wrote: Can you please share an excerpt of the LLVM IR that flang generates? I think there must be something deeply wrong with it if you're hitting this code as a performance bottleneck. https://github.com/llvm/llvm-project/pull/88541