Note: This commit does not reflect an actual work log, it is a feature based split of the changes done in the FIR experimental branch. The related work log can be found in the commits between:8c320e3bf2and:9b9ea05f9aOriginal-commit: flang-compiler/f18@00d8d5121c Reviewed-on: https://github.com/flang-compiler/f18/pull/959 Tree-same-pre-rewrite: false