catalyst icon indicating copy to clipboard operation
catalyst copied to clipboard

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

Open erick-xanadu opened this issue 1 year ago • 0 comments

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.

erick-xanadu avatar Aug 06 '24 18:08 erick-xanadu