[PATCH] D112711: [fir] Add FIR CSE specific pass

Valentin Clement via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 28 05:37:12 PDT 2021


clementval created this revision.
clementval added reviewers: jeanPerier, svedanayagam, sscalpone, kiranchandramohan, jdoerfert, schweitz, pmccormick, rovka, AlexisPerry, PeteSteinfeld.
Herald added subscribers: Chia-hungDuan, mehdi_amini, rriddle, mgrang, mgorny.
Herald added a project: Flang.
clementval requested review of this revision.
Herald added subscribers: llvm-commits, stephenneuendorffer.
Herald added a project: LLVM.

Perform common subexpression elimination on FIR operations. This pass
differs from the MLIR CSE pass in that it is FIR/Fortran semantics aware.

Running the same test (flang/test/Fir/cse.fir) through the MLIR CSE
pass will not give a similar results.

This patch is part of the upstreaming effort from fir-dev branch.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112711

Files:
  flang/include/flang/Optimizer/Transforms/Passes.h
  flang/include/flang/Optimizer/Transforms/Passes.td
  flang/lib/Optimizer/Transforms/CMakeLists.txt
  flang/lib/Optimizer/Transforms/CSE.cpp
  flang/test/Fir/cse.fir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112711.382998.patch
Type: text/x-patch
Size: 16842 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211028/79219e9d/attachment.bin>


More information about the llvm-commits mailing list