Skip to content

range analysis: propagate state on plaintexts operations#2584

Merged
asraa merged 1 commit intomainfrom
test_862194691
Jan 29, 2026
Merged

range analysis: propagate state on plaintexts operations#2584
asraa merged 1 commit intomainfrom
test_862194691

Conversation

@copybara-service
Copy link
Contributor

range analysis: propagate state on plaintexts operations

After an integrate update, llvm/llvm-project@35e9540 the lattigo dot_product_8f case started failing since GenerateParamCKKS would fail to generate parameters. This was happening because RangeAnalysis was not getting an initialized range value on the resulting value. The upstream commit made it so that the data flow analysis propagates values from the body region instead of falling back to a default (setToEntryState). Then, unitialized values were propagated in the IR.

I noticed that the values after scf.for weren't propagated, and those loops were found in the encrypt client helpers which are all plaintext values. Those were hitting default operation visiting cases, and so this fix handles that part of the code better by propgating plaintext states as well.

Now operations like remsi/index_cast are propagating instead of returning early - so now the iter_arg values are initialized properly.

@copybara-service copybara-service bot force-pushed the test_862194691 branch 2 times, most recently from f823e6e to 4f9ffc5 Compare January 28, 2026 20:44
PiperOrigin-RevId: 862408126
@asraa asraa merged commit 4f72d4c into main Jan 29, 2026
6 of 7 checks passed
@asraa asraa deleted the test_862194691 branch January 29, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant