[flang-commits] [flang] [flang][OpenMP] Make static duration variables default to shared DSA (PR #142783)
Leandro Lupori via flang-commits
flang-commits at lists.llvm.org
Mon Jun 9 05:56:07 PDT 2025
================
@@ -756,6 +756,7 @@ class Symbol {
LocalityShared, // named in SHARED locality-spec
InDataStmt, // initialized in a DATA statement, =>object, or /init/
InNamelist, // in a Namelist group
+ InCommonBlock, // referenced in a common block
----------------
luporl wrote:
Function `IsSymbolInCommonBlock` can be used to check if a symbol is referenced in a common block, but having a flag for this is better for performance.
Can you remove `IsSymbolInCommonBlock` and replace its use with a test for this new flag?
https://github.com/llvm/llvm-project/pull/142783
More information about the flang-commits
mailing list