-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR #6601: Add Comparison with False/True cases to algebraic_simplifie…
…r HandleCompare Imported from GitHub PR #6601 Added Comparison of PRED param with False/True constants cases to algebraic_simplifier HandleCompare Cases: ``` IF A is PRED: A != false -> A (1) false != A -> A (2) A == true -> A (3) true == A -> A (4) ``` I used example code from `TEST_F(AlgebraicSimplifierTest, AndTrue)` for the tests @majnemer Can you review it? Copybara import of the project: -- 6d8ee9d by Alexander Pivovarov <[email protected]>: Add Comparison with False/True cases to algebraic_simplifier HandleCompare Merging this change closes #6601 COPYBARA_INTEGRATE_REVIEW=#6601 from apivovarov:compare_false_true 6d8ee9d PiperOrigin-RevId: 578793421
- Loading branch information
1 parent
d6ec2c8
commit ca31652
Showing
2 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters