[Flang] Call the CSE pass in the pass pipeline
authorKiran Chandramohan <kiran.chandramohan@arm.com>
Thu, 23 Jun 2022 10:55:30 +0000 (10:55 +0000)
committerKiran Chandramohan <kiran.chandramohan@arm.com>
Thu, 23 Jun 2022 11:04:39 +0000 (11:04 +0000)
commitc995038c27891fd776375bd7f20e16181d86d573
treec76aaec19dcfb54c5ca5c4d849eb3675ff688a98
parent6f258c0fd34cf4001ffa08c61f6e4e0f1254c50f
[Flang] Call the CSE pass in the pass pipeline

During the upstreaming process, it was decided to move contents
of the FIR CSE pass to the MLIR pass. Most of the FIR CSE changes
that are used are already moved to the MLIR pass. This patch calls
the MLIR CSE pass in places where the FIR CSE pass is called in the
pass pipeline.

Note: This is part of upstreaming from the fir-dev branch of
https://github.com/flang-compiler/f18-llvm-project.

Reviewed By: awarzynski, clementval

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

Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
Co-authored-by: Valentin Clement <clementval@gmail.com>
Co-authored-by: Andrzej Warzynski <andrzej.warzynski@arm.com>
flang/include/flang/Tools/CLOptions.inc
flang/test/Driver/mlir-pass-pipeline.f90
flang/test/Fir/basic-program.fir