[flang-commits] [flang] [flang][debug] Only import debug info for specified renamed variables (PR #194926)
Abid Qadeer via flang-commits
flang-commits at lists.llvm.org
Tue May 5 10:11:40 PDT 2026
================
@@ -73,8 +73,8 @@ subroutine test_only_rename()
! NO_DEBUG-NOT: fir.use_stmt
! WITH_DEBUG-LABEL: func.func @_QPtest_only_rename()
-! WITH_DEBUG-DAG: fir.use_stmt "mod1" only_symbols{{\[}}[@_QMmod1Ec]] renames{{\[}}[#fir.use_rename<"local_b", @_QMmod1Eb>, #fir.use_rename<"local_a", @_QMmod1Ea>]]
-! WITH_DEBUG-DAG: fir.use_stmt "mod2" renames{{\[}}[#fir.use_rename<"local_x", @_QMmod2Ex>, #fir.use_rename<"local_y", @_QMmod2Ey>]]
+! WITH_DEBUG-DAG: fir.use_stmt "mod1" only_symbols{{\[}}[@_QMmod1Eb, @_QMmod1Ec, @_QMmod1Ea]] renames{{\[}}[#fir.use_rename<"local_b", @_QMmod1Eb>, #fir.use_rename<"local_a", @_QMmod1Ea>]]
+! WITH_DEBUG-DAG: fir.use_stmt "mod2" only_symbols{{\[}}[@_QMmod2Ex, @_QMmod2Ey]] renames{{\[}}[#fir.use_rename<"local_x", @_QMmod2Ex>, #fir.use_rename<"local_y", @_QMmod2Ey>]]
----------------
abidh wrote:
This may be a problem with exiting tests too. But I think the tests should not depend on the order of symbols in only and rename lists. Currently it is probably insertion order. But to be future safe, we have to write test in a way that it does not fail for different insertion order. That could be done separately though. Not blocking for this PR.
https://github.com/llvm/llvm-project/pull/194926
More information about the flang-commits
mailing list