[all-commits] [llvm/llvm-project] ca3bc4: [flang] Inline scalar-to-scalar TRANSFER for same-...

Zhen Wang via All-commits all-commits at lists.llvm.org
Thu Apr 16 12:11:09 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca3bc44c3090481615bd8fc4b3e64358b845c8bf
      https://github.com/llvm/llvm-project/commit/ca3bc44c3090481615bd8fc4b3e64358b845c8bf
  Author: Zhen Wang <zhenw at nvidia.com>
  Date:   2026-04-16 (Thu, 16 Apr 2026)

  Changed paths:
    M flang/lib/Optimizer/Builder/IntrinsicCall.cpp
    M flang/test/Lower/Intrinsics/transfer.f90

  Log Message:
  -----------
  [flang] Inline scalar-to-scalar TRANSFER for same-size trivial types (#191589)

Inline the TRANSFER intrinsic for scalar-to-scalar cases where the
result is a trivial type (integer, real, etc.) and source and result
have the same storage size. Instead of calling _FortranATransfer, the
lowering now emits a fir.convert on the source address followed by a
fir.load, effectively performing a reinterpret cast.



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