[all-commits] [llvm/llvm-project] 034f0f: [flang] Stop running array-value-copy in the defau...

Eugene Epshteyn via All-commits all-commits at lists.llvm.org
Tue Jul 28 07:59:56 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 034f0f1ad4badc02d9d26b6f1ae3324a09276c4a
      https://github.com/llvm/llvm-project/commit/034f0f1ad4badc02d9d26b6f1ae3324a09276c4a
  Author: Eugene Epshteyn <eepshteyn at nvidia.com>
  Date:   2026-07-28 (Tue, 28 Jul 2026)

  Changed paths:
    M flang/include/flang/Optimizer/Passes/CommandLineOpts.h
    M flang/include/flang/Optimizer/Passes/Pipelines.h
    M flang/lib/Optimizer/Passes/CommandLineOpts.cpp
    M flang/lib/Optimizer/Passes/Pipelines.cpp
    M flang/test/Driver/bbc-mlir-pass-pipeline.f90
    M flang/test/Driver/mlir-debug-pass-pipeline.f90
    M flang/test/Driver/mlir-pass-pipeline.f90
    R flang/test/Fir/arrexp.fir
    M flang/test/Fir/basic-program.fir

  Log Message:
  -----------
  [flang] Stop running array-value-copy in the default pipeline (#211816)

Since the removal of the legacy expression lowering (#210385, #210621,
#210639, #210873), nothing in flang produces the array-value operations
(fir.array_load and friends) that the array-value-copy pass legalizes,
so the pass runs as a guaranteed no-op on every function. Remove it from
the default pipeline (addAVC and the disable-avc mlir option); the pass
itself and its fir-opt tests remain and still run via fir-opt
--array-value-copy.

The array-value operations themselves and the pass are planned for
removal in follow-up patches.

flang/test/Fir/arrexp.fir is deleted rather than updated: it feeds
legacy array-value ops through tco's full pipeline, which no longer
legalizes them (the ops have no codegen patterns), and the file
exercises no live feature beyond that legalization.

Assisted-by: AI



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