[all-commits] [llvm/llvm-project] 244bd7: [flang] Runs FIR SimplifyRegionLitePass pass after...

jeanPerier via All-commits all-commits at lists.llvm.org
Mon Jul 25 10:40:56 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 244bd7cba7cba6abf889d594cc94355d958a9308
      https://github.com/llvm/llvm-project/commit/244bd7cba7cba6abf889d594cc94355d958a9308
  Author: Jean Perier <jperier at nvidia.com>
  Date:   2022-07-25 (Mon, 25 Jul 2022)

  Changed paths:
    M flang/include/flang/Tools/CLOptions.inc
    M flang/test/Driver/bbc-mlir-pass-pipeline.f90
    M flang/test/Driver/mlir-pass-pipeline.f90
    M flang/test/Fir/basic-program.fir
    A flang/test/Fir/simplify-region-lite-after-inliner.fir

  Log Message:
  -----------
  [flang] Runs FIR SimplifyRegionLitePass pass after calling the inliner

In flang pipeline, the inliner calls createCanonicalizerPass with the region
simplification disabled. The inliner pass does canonicalization even if
no inlining happens. After canonicalization, FIR lite region simplification
must be called to get rid of unreachable regions.
This code exposes the need to run SimplifyRegionLitePass after the inliner is
called with FIR pipeline.

Differential Revision: https://reviews.llvm.org/D130484




More information about the All-commits mailing list