Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transforms: Allow to pass a pattern rewriter in CSE #3539

Merged
merged 6 commits into from
Dec 18, 2024
Merged

Conversation

math-fehr
Copy link
Collaborator

@math-fehr math-fehr commented Nov 29, 2024

Stacked PRs:


transforms: Allow to pass a pattern rewriter in CSE

Without passing the pattern rewriter, CSE couldn't be called inside
a pattern rewriter walker, as it would not notify the operations that
were deleted or replaced.

`PatternRewriter` should only be used for rewrite patterns.

stack-info: PR: #3537, branch: math-fehr/stack/1
The pass was not propagating the listener from the PatternRewriter, and
thus some operations were modified without notifying the rewrite
worklist.

stack-info: PR: #3538, branch: math-fehr/stack/2
Without passing the pattern rewriter, CSE couldn't be called inside
a pattern rewriter walker, as it would not notify the operations that
were deleted or replaced.

stack-info: PR: #3539, branch: math-fehr/stack/3
Copy link

codecov bot commented Nov 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.73%. Comparing base (b8611e0) to head (9337f25).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3539   +/-   ##
=======================================
  Coverage   90.73%   90.73%           
=======================================
  Files         467      467           
  Lines       58965    58965           
  Branches     5639     5640    +1     
=======================================
+ Hits        53499    53500    +1     
  Misses       4020     4020           
+ Partials     1446     1445    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

math-fehr added a commit that referenced this pull request Dec 5, 2024
Stacked PRs:
 * #3540
 * #3539
 * #3538
 * __->__#3537


--- --- ---

### transforms: use Rewriter instead of PatternRewriter in mlir-opt


`PatternRewriter` should only be used for rewrite patterns.
math-fehr added a commit that referenced this pull request Dec 5, 2024
…il (#3538)

Stacked PRs:
 * #3540
 * #3539
 * __->__#3538
 * #3537


--- --- ---

### transforms: use rewriter and listener in
convert-stencil-to-csl-stencil


The pass was not propagating the listener from the PatternRewriter, and
thus some operations were modified without notifying the rewrite
worklist.
Base automatically changed from math-fehr/stack/2 to main December 5, 2024 15:29
EdmundGoodman pushed a commit to EdmundGoodman/xdsl that referenced this pull request Dec 6, 2024
…project#3537)

Stacked PRs:
 * xdslproject#3540
 * xdslproject#3539
 * xdslproject#3538
 * __->__#3537


--- --- ---

### transforms: use Rewriter instead of PatternRewriter in mlir-opt


`PatternRewriter` should only be used for rewrite patterns.
EdmundGoodman pushed a commit to EdmundGoodman/xdsl that referenced this pull request Dec 6, 2024
…il (xdslproject#3538)

Stacked PRs:
 * xdslproject#3540
 * xdslproject#3539
 * __->__#3538
 * xdslproject#3537


--- --- ---

### transforms: use rewriter and listener in
convert-stencil-to-csl-stencil


The pass was not propagating the listener from the PatternRewriter, and
thus some operations were modified without notifying the rewrite
worklist.
@math-fehr math-fehr merged commit b394263 into main Dec 18, 2024
15 checks passed
@math-fehr math-fehr deleted the math-fehr/stack/3 branch December 18, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
transformations Changes or adds a transformatio
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants