+
Skip to content

Add select lifting for binary operations. #2484

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

copybara-service[bot]
Copy link

Add select lifting for binary operations.

Add support for selects that share the same operation in all of its cases,
e.g. select(s, a + shared, b + shared) -> add(shared, select(s, a, b)).

For now, because commutativity of the binary operation is not checked, we require that the shared operand is always on the LHS or always on the RHS, not sometimes one or the other.

Copy link

google-cla bot commented Jun 25, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@copybara-service copybara-service bot force-pushed the test_775836069 branch 4 times, most recently from 90e38fc to 7129dd4 Compare July 8, 2025 17:03
Add support for selects that share the same operation in all of its cases,
e.g. `select(s, a + shared, b + shared) -> add(shared, select(s, a, b))`.

For now, because commutativity of the binary operation is not checked, we require that the shared operand is always on the LHS or always on the RHS, not sometimes one or the other.

PiperOrigin-RevId: 775836069
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.

0 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载