-
Notifications
You must be signed in to change notification settings - Fork 91
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
Disable region simplification in --aie-substitute-shim-dma-allocations
pass
#1755
base: main
Are you sure you want to change the base?
Conversation
Seems like red-flag that the IR is left in a bad state somewhere. Do you have a failing (fixed) test you can add to the PR? |
@andrej is this still needed after the dynamic object FIFO implementation landed? @AndraBisca |
Oops, forgot about this one. Yes I believe this is still needed. I can work on a test. |
9b13322
to
670e20a
Compare
Thanks, out of curiosity I'd still like to take a look at why it was crashing without the modification. |
The error has little to do with the pass changed in this CR. It has to do with a missing terminator at the end of the |
Please let me know if/when you find the root cause and if you'd still be OK with merging this PR even if it doesn't directly address the root cause. |
The pattern rewriter in this pass previously also performed region simplification, which caused an assertion error if the MLIR contained blocks with input arguments, such as generated by:
This fixes that issue. I don't fully understand why the issue exists with region simplification, but the point of this pass is not to simplify regions anyways, so it is fine to disable.