[flang-commits] [flang] [flang][lowering] Implement component-wise initialization for derived types (PR #187465)
via flang-commits
flang-commits at lists.llvm.org
Mon Mar 23 04:16:02 PDT 2026
================
@@ -839,56 +1083,68 @@ void Fortran::lower::defaultInitializeAtRuntime(
mlir::Type symTy = converter.genType(sym);
const auto *details =
sym.detailsIf<Fortran::semantics::ObjectEntityDetails>();
- if (details && !Fortran::semantics::IsPolymorphic(sym) &&
+ bool useFastInit =
----------------
jeanPerier wrote:
"Fast" in `useFastInit` is not really descriptive here. Prefer something like `useInlineInit` (fast is also very tied to floating point optimizations and it is better to keep away from it when these change do not change the floating point semantic).
https://github.com/llvm/llvm-project/pull/187465
More information about the flang-commits
mailing list