google / google/heir

tensor_ext: Add canonicalization patterns for tensor_ext.rotate_and_reduce

Open
#2,134 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
MLIR
Stars
906
Forks
171
Avg merge
4d 12h
Merged PRs (30d)
32

Description

Examples:
* Canonicalize a rotate_and_reduce with plaintext that all match constant 1 to remove the plaintext arg
* If there's a rotate_and_reduce preceded or followed by another rotation+mulop of the ciphertext, fold that in and increase the step count / add the plaintext mul arg to the reduction plaintexts

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.