Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

[MLIR][Flang] Prevent CSE and constant materialization from crossing some OpenMP region boundaries #229

Merged
merged 4 commits into from
Sep 11, 2023

Commits on Sep 11, 2023

  1. [MLIR] Allow dialects to disable CSE for certain operations

    This patch adds the `DialectCSEInterface`, which dialects can implement and register to prevent the common sub-expression elimination (CSE) pass from modifying regions of certain operations.
    
    The result is that these operations would be treated by CSE as if they were `IsolatedFromAbove`, but without the restrictions that come with that trait.
    
    Differential Revision: https://reviews.llvm.org/D159212
    skatrak committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    52b42f9 View commit details
    Browse the repository at this point in the history
  2. [MLIR][OpenMP] Prevent CSE and constant materialization from crossing…

    … some OpenMP region boundaries
    
    Operations this patch prevents constants and common subexpressions being
    extracted from:
      - omp.target
      - omp.teams
      - omp.parallel
    skatrak committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    5c73148 View commit details
    Browse the repository at this point in the history
  3. Fix unit tests

    skatrak committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    28bea28 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a83267b View commit details
    Browse the repository at this point in the history