[all-commits] [llvm/llvm-project] ed0741: [flang] translate derived type array init to attri...
jeanPerier via All-commits
all-commits at lists.llvm.org
Tue May 20 07:11:50 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ed07412888e2ef5a1f36a48eb5a280050e223fad
https://github.com/llvm/llvm-project/commit/ed07412888e2ef5a1f36a48eb5a280050e223fad
Author: jeanPerier <jperier at nvidia.com>
Date: 2025-05-20 (Tue, 20 May 2025)
Changed paths:
A flang/include/flang/Optimizer/CodeGen/LLVMInsertChainFolder.h
M flang/include/flang/Optimizer/Dialect/FIROps.td
M flang/lib/Optimizer/CodeGen/CMakeLists.txt
M flang/lib/Optimizer/CodeGen/CodeGen.cpp
A flang/lib/Optimizer/CodeGen/LLVMInsertChainFolder.cpp
M flang/lib/Optimizer/Dialect/FIROps.cpp
A flang/test/Fir/convert-and-fold-insert-on-range.fir
Log Message:
-----------
[flang] translate derived type array init to attribute if possible (#140268)
This patch relies on #140235 and #139724 to speed-up compilations of
files with derived type array global with initial value.
Currently, such derived type global init was lowered to an
llvm.mlir.insertvalue chain in the LLVM IR dialect because there was no
way to represent such value via attributes.
This chain was later folded in LLVM dialect to LLVM IR using LLVM IR
(not dialect) folding. This insert chain generation and folding is very
expensive for big arrays. For instance, this patch brings down the
compilation of FM_lib fmsave.f95 from 50s
to 0.5s.
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