[flang-commits] [flang] [flang][hlfir] Do not emit extra declare for dummy used in BLOCK (PR #69184)

via flang-commits flang-commits at lists.llvm.org
Mon Oct 16 09:47:33 PDT 2023


jeanPerier wrote:

> Would it be possible to do this earlier, something like this:

Not currently because this analysis does not have access to the current symbol mapping. From a library/tools perspective, I would rather avoid having the PFT tools behavior depending on the current state of the Bridge (that comes afterwards).

@vdonaldson, I can move it into instantiateVar [here](https://github.com/llvm/llvm-project/blob/1e8ab993baf4e28590bdac71130f48ebd5f57675/flang/lib/Lower/ConvertVariable.cpp#L2091) though if I propagate some flag that instantiated variable should be skipped. Would that be better?

https://github.com/llvm/llvm-project/pull/69184


More information about the flang-commits mailing list