Skip to content

disable loop unrolling by default - #3410

Merged
copybara-service[bot] merged 4 commits into
google:mainfrom
j2kun:enable-loop-support
Sep 14, 2026
Merged

copybara-service[bot] merged 4 commits into
google:mainfrom
j2kun:enable-loop-support

Conversation

@j2kun

@j2kun j2kun commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

This PR enables loop support by default in HEIR.

experimental-disable-loop-unroll is changed to be default true, and legacy tests that require unrolling loops (such as older tests of the HECO transforms) opt-in to using it.

Remaining changes are updating test harness to pass through encryptions of zero as needed.

@j2kun
j2kun marked this pull request as draft September 11, 2026 17:46
@j2kun
j2kun marked this pull request as ready for review September 11, 2026 19:24

@AlexanderViand AlexanderViand left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's a good time to rename the option, to something (a) without "experimental" and (b) flipped, so that it's "--unroll-loops"?

@j2kun

j2kun commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator Author

@AlexanderViand fixed! I'm also not sure why the rotom_mnist test was failing, so I opted it back into loop unrolling, but I will look into that later. CC @edwjchen

@AlexanderViand AlexanderViand left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Comment thread tests/Examples/lattigo/ckks/lola/lola_test.go
@j2kun j2kun added the pull_ready Indicates whether a PR is ready to pull. The copybara worker will import for internal testing label Sep 14, 2026
@copybara-service
copybara-service Bot merged commit b175d7c into google:main Sep 14, 2026
25 of 26 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