PennyLaneAI / PennyLaneAI/catalyst

[MLIR] Place `async.drop_ref` operations when identical code folding is applied to basic blocks.

Open
#997 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.