[flang-commits] [flang] [flang] only instantiate referenced use associated variables (PR #222318)
Jean-Didier PAILLEUX via flang-commits
flang-commits at lists.llvm.org
Fri Sep 11 07:17:05 PDT 2026
================
@@ -16,6 +16,7 @@ end module m_coarray_test
program test
use m_coarray_test
+ module_coarray = 1.0
----------------
JDPailleux wrote:
Hi @jeanPerier,
Thanks for this patch, it's a great idea that makes the IR easier to read!
I agree with you and we don't need to allocate all unused variables.
I tested it locally with small examples, and it works fine for me.
LGTM
https://github.com/llvm/llvm-project/pull/222318
More information about the flang-commits
mailing list