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

Conversation

skatrak
Copy link
Contributor

@skatrak skatrak commented Sep 8, 2023

Operations this patch prevents constants and common sub-expressions being extracted from:

  • omp.target
  • omp.teams
  • omp.parallel

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
… some OpenMP region boundaries

Operations this patch prevents constants and common subexpressions being
extracted from:
  - omp.target
  - omp.teams
  - omp.parallel
@skatrak skatrak merged commit 0c2dbe5 into ROCm-Developer-Tools:amd-trunk-dev Sep 11, 2023
@skatrak skatrak deleted the cse branch September 11, 2023 09:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant