PennyLaneAI / PennyLaneAI/catalyst
[MLIR] Place `async.drop_ref` operations when identical code folding is applied to basic blocks.
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 234
- Forks
- 84
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 66
Description
The requirement here identical code folding (also known as mergeIdenticalBlocks) can be run before the add-exception-handling-pass. See ticket #995 . Something that would also be good is improve the pass pipeline interface for conditional passes. Something like:
"convert-catalyst-to-llvm",
"convert-quantum-to-llvm",
"convert-async-to-llvm" if config.async else None, # or `else ""`
"add-exception-handling",
"emit-catalyst-py-interface",
Would be nice.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the mergeIdenticalBlocks and add-exception-handling pass entry points, then review ticket #995 for the required ordering context. Done means async.drop_ref operations are placed correctly when identical code folding runs before exception handling, with the conditional pass-pipeline behavior clarified if it remains in scope.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100