[flang-commits] [flang] [flang][FIR] implement asm alias interface for fir.type under option (PR #208665)
via flang-commits
flang-commits at lists.llvm.org
Fri Jul 10 02:00:18 PDT 2026
jeanPerier wrote:
As a data point, the size of the IR produced for the following program with `flang -fc1 -emit-fir` goes from 346K to 2.7K with the patch and the option:
```
subroutine foo()
type t1
integer :: i, j, k, l
end type
type t2
type(t1) :: a1, a2, a3, a4
end type
type t3
type(t2) :: b1, b2, b3, b4
end type
type t4
type(t3) :: c1, c2, c3, c4
end type
type t5
type(t4) :: d1, d2, d3, d4
end type
type(t5) :: x, y, z
call bar(x, y, z)
call bar(x, y, z)
call bar(x, y, z)
call bar(x, y, z)
end subroutine
```
https://github.com/llvm/llvm-project/pull/208665
More information about the flang-commits
mailing list