khaki3 wrote: I enabled `fir-to-to-scf` in the flang pipeline and profiled the CPU performance. I had a similar result to https://github.com/llvm/llvm-project/pull/207816#issuecomment-5008450778. https://github.com/llvm/llvm-project/pull/217051