[flang-commits] [flang] [flang][lowering] Implement component-wise initialization for derived types (PR #187465)
via flang-commits
flang-commits at lists.llvm.org
Thu Mar 26 03:11:56 PDT 2026
refuseno wrote:
@jeanPerier Thanks for the guidance! I've updated the PR based on your advice.
Here is the refined logic:
- Component-wise init now only kicks in if the derived type has pointer/allocatable components AND zero explicit initialization.
- For derived type array components, I'm not sure if a runtime call is better than current global + memcpy. So, I'll fall back to the global + memcpy approach when an array of derived types is involved.
Could you please review these changes at your convenience? Thanks again for your help!
https://github.com/llvm/llvm-project/pull/187465
More information about the flang-commits
mailing list