You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I will write here what I confirmed about this hang using the perf command.
perf record & perf report:
$ timeout 10 perf record -g flang-new -c goto_5.f90[ perf record: Woken up 10 times to write data ][ perf record: Captured and wrote 2.393 MB perf.data (39133 samples) ]
$ perf report | c++filt
From this output, we can see that almost all the time of compilation is spent with the symbol Fortran::semantics::CheckScopeConstraints. This symbol seems to come from a function called CheckScopeConstraints in the namespace Fortran::semantics.
The following test program causes a hang, and it is documented in llvm-test-suite. (See https://github.com/llvm/llvm-test-suite/blob/5942ca45a1036ace15b70e117d636ecf89224957/Fortran/gfortran/regression/DisabledFiles.cmake#L1974)
https://github.com/llvm/llvm-test-suite/blob/main/Fortran/gfortran/regression/goto_5.f90
I will write here what I confirmed about this hang using the perf command.
perf record & perf report:
Here is the output of the perf report command:
From this output, we can see that almost all the time of compilation is spent with the symbol
Fortran::semantics::CheckScopeConstraints
. This symbol seems to come from a function calledCheckScopeConstraints
in the namespaceFortran::semantics
.llvm-project/flang/lib/Semantics/resolve-labels.cpp
Line 989 in d923f4c
The text was updated successfully, but these errors were encountered: