[all-commits] [llvm/llvm-project] 356bf3: Reland " [flang] Rely on global initialization for...

jeanPerier via All-commits all-commits at lists.llvm.org
Tue Mar 11 07:20:05 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 356bf3fa2dddb3cb8c4e72a3978d1179e5aaa3c2
      https://github.com/llvm/llvm-project/commit/356bf3fa2dddb3cb8c4e72a3978d1179e5aaa3c2
  Author: jeanPerier <jperier at nvidia.com>
  Date:   2025-03-11 (Tue, 11 Mar 2025)

  Changed paths:
    M flang/include/flang/Optimizer/Support/InternalNames.h
    M flang/lib/Lower/ConvertVariable.cpp
    M flang/test/Lower/HLFIR/structure-constructor.f90
    M flang/test/Lower/OpenMP/private-derived-type.f90
    M flang/test/Lower/default-initialization.f90
    M flang/test/Lower/derived-type-finalization.f90
    M flang/test/Lower/derived-type-temp.f90
    M flang/test/Lower/forall/forall-allocatable-2.f90
    M flang/test/Lower/pointer-default-init.f90

  Log Message:
  -----------
  Reland " [flang] Rely on global initialization for simpler derived types" (#130290)

Currently, all derived types are initialized through `_FortranAInitialize`, which is functionally correct, but bears poor runtime performance. This patch falls back on global initialization for "simpler" derived types to speed up the initialization.

Note: this relands #114002 with the fix for the LLVM timeout regressions that have been seen. The fix is to use the added fir.copy to avoid aggregate load/store.

Co-authored-by: NimishMishra <42909663+NimishMishra at users.noreply.github.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list