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

fix(compiler): Do not omit assignment of optimizer ID to FHE.reinterpret_precision #729

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

andidr
Copy link
Contributor

@andidr andidr commented Mar 5, 2024

The DAG pass establishing a mapping between operations in the IR and the optimizer DAG currently omits assignment of the optimizer ID to FHE.reinterpret_precision operations via the TFHE.OId attribute. This prevents subsequent passes from determining to which optimizer partition a FHE.reinterpret_precision operation belongs.

This commit removes the early exit in FunctionToDag::addOperation for the handling of FHE.reinterpret_precision that prevented the code assigning the optimizer ID from being executed.

@andidr andidr requested a review from rudy-6-4 March 5, 2024 14:55
@cla-bot cla-bot bot added the cla-signed label Mar 5, 2024
…ret_precision

The DAG pass establishing a mapping between operations in the IR and
the optimizer DAG currently omits assignment of the optimizer ID to
`FHE.reinterpret_precision` operations via the `TFHE.OId`
attribute. This prevents subsequent passes from determining to which
optimizer partition a `FHE.reinterpret_precision` operation belongs.

This commit removes the early exit in `FunctionToDag::addOperation`
for the handling of `FHE.reinterpret_precision` that prevented the
code assigning the optimizer ID from being executed.
@andidr andidr merged commit 282caca into main Mar 7, 2024
13 checks passed
@andidr andidr deleted the andi/optimizer-fixes branch March 7, 2024 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants