[all-commits] [llvm/llvm-project] 2e53a6: [flang][runtime] Speed up initialization & destruc...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Jul 14 11:14:23 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e53a68c09b1bb4bc6c31146c8e69789ae9848ae
      https://github.com/llvm/llvm-project/commit/2e53a68c09b1bb4bc6c31146c8e69789ae9848ae
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2025-07-14 (Mon, 14 Jul 2025)

  Changed paths:
    M flang-rt/include/flang-rt/runtime/descriptor.h
    M flang-rt/include/flang-rt/runtime/type-info.h
    M flang-rt/include/flang-rt/runtime/work-queue.h
    M flang-rt/lib/runtime/assign.cpp
    M flang-rt/lib/runtime/derived.cpp
    M flang-rt/lib/runtime/descriptor.cpp
    M flang-rt/lib/runtime/pointer.cpp
    M flang-rt/lib/runtime/work-queue.cpp

  Log Message:
  -----------
  [flang][runtime] Speed up initialization & destruction (#148087)

Rework derived type initialization in the runtime to just initialize the
first element of any array, and then memcpy it to the others, rather
than exercising the per-component paths for each element.

Reword derived type destruction in the runtime to detect and exploit a
fast path for allocatable components whose types themselves don't need
nested destruction.

Small tweaks were made in hot paths exposed by profiling in descriptor
operations and derived type assignment.



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