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

Move AddAndKeySwitchCountAnalysis to a standalone pass #1423

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

ZenithalHourlyRate
Copy link
Collaborator

The IR is stable only after secret-insert-mgmt-bgv and optimize-relinearization, yet the count analysis runs in secret-insert-mgmt-bgv, which will result in an incorrect result.

Also only annotate addCount and keySwitchCount for each SSA when debugging to avoid poluting the IR.

The pass lives in lib/Dialect/Openfhe as it is openfhe specific though it is quite early in the pipeline, see also #1420.

@ZenithalHourlyRate ZenithalHourlyRate force-pushed the openfhe-count branch 2 times, most recently from c4b3e87 to 69ef43e Compare February 19, 2025 04:51
@j2kun j2kun added the pull_ready Indicates whether a PR is ready to pull. The copybara worker will import for internal testing label Feb 19, 2025
@copybara-service copybara-service bot merged commit f4949f9 into google:main Feb 21, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pull_ready Indicates whether a PR is ready to pull. The copybara worker will import for internal testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants