[all-commits] [llvm/llvm-project] 74c2ec: [flang] use greedy mlir driver for stack arrays pass

Tom Eccles via All-commits all-commits at lists.llvm.org
Tue May 23 07:52:11 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 74c2ec50f393bad8b31d0dd0bd8b2ff44d361198
      https://github.com/llvm/llvm-project/commit/74c2ec50f393bad8b31d0dd0bd8b2ff44d361198
  Author: Tom Eccles <tom.eccles at arm.com>
  Date:   2023-05-23 (Tue, 23 May 2023)

  Changed paths:
    M flang/lib/Optimizer/Transforms/StackArrays.cpp

  Log Message:
  -----------
  [flang] use greedy mlir driver for stack arrays pass

In upstream mlir, the dialect conversion infrastructure is used for
lowering from one dialect to another: the passes are of the form
XToYPass. Whereas, transformations within the same dialect tend to use
applyPatternsAndFoldGreedily.

In this case, the full complexity of applyPatternsAndFoldGreedily isn't
needed so we can get away with the simpler applyOpPatternsAndFold.

This change was suggested by @jeanPerier

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




More information about the All-commits mailing list