[all-commits] [llvm/llvm-project] 9c0acc: [flang] Run algebraic simplification optimization ...

Slava Zakharin via All-commits all-commits at lists.llvm.org
Thu Jul 21 11:55:28 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9c0acc42e8d223de6d5c39ce2c26a83ad147b262
      https://github.com/llvm/llvm-project/commit/9c0acc42e8d223de6d5c39ce2c26a83ad147b262
  Author: Slava Zakharin <szakharin at nvidia.com>
  Date:   2022-07-21 (Thu, 21 Jul 2022)

  Changed paths:
    M flang/include/flang/Optimizer/Transforms/Passes.h
    M flang/include/flang/Optimizer/Transforms/Passes.td
    M flang/include/flang/Tools/CLOptions.inc
    M flang/lib/Frontend/FrontendActions.cpp
    A flang/lib/Optimizer/Transforms/AlgebraicSimplification.cpp
    M flang/lib/Optimizer/Transforms/CMakeLists.txt
    M flang/lib/Optimizer/Transforms/PassDetail.h
    A flang/test/Driver/bbc-mlir-pass-pipeline.f90
    M flang/test/Driver/mlir-pass-pipeline.f90
    M flang/test/Fir/basic-program.fir
    M flang/tools/bbc/CMakeLists.txt
    M flang/tools/bbc/bbc.cpp
    M flang/tools/tco/CMakeLists.txt
    M flang/tools/tco/tco.cpp

  Log Message:
  -----------
  [flang] Run algebraic simplification optimization pass.

Try 2 to merge 4fbd1d6c872e8228f23a6e13914222af40ca6461.

Flang algebraic simplification pass will run algebraic simplification
rewrite patterns for Math/Complex/etc. dialects. It is enabled
under opt-for-speed optimization levels (i.e. for O1/O2/O3; Os/Oz will not
enable it).

With this change the FIR/MLIR optimization pipeline becomes affected
by the -O* optimization level switches. Until now these switches
only affected the middle-end and back-end.

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




More information about the All-commits mailing list