[llvm-branch-commits] [flang] [flang] optimize array function calls using hlfir.eval_in_mem (PR #118070)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Nov 29 01:06:22 PST 2024
jeanPerier wrote:
Note that this is a "classic" Fortran compiler optimization, you can verify that at least all of gfortran, ifx, and nvfortran are doing it on something very easy like:
```
subroutine test
interface
function foo()
real :: foo(100)
end function
end interface
real x(100)
x = foo()
call bar(x)
end subroutine
```
https://github.com/llvm/llvm-project/pull/118070
More information about the llvm-branch-commits
mailing list