Hi,
The following changes implement the transformation for the expression - (X | Y) - X --> (~X & Y).
Z3 Link: http://rise4fun.com/Z3/2D4n
Please help in reviewing it.
Thanks.
Paths
| Differential D5791
[InstCombineAddSub] Transformation for the expression (X | Y) - X --> (~X & Y) ClosedPublic Authored by ankur29.garg on Oct 15 2014, 1:52 AM.
Details Summary Hi, Z3 Link: http://rise4fun.com/Z3/2D4n Please help in reviewing it. Thanks.
Diff Detail Event Timelineankur29.garg retitled this revision from to [InstCombineAddSub] Transformation for the expression (X | Y) - X --> (~X & Y). ankur29.garg updated this object. This revision is now accepted and ready to land.Oct 26 2014, 1:37 PM majnemer edited edge metadata. Comment ActionsActually, I think this needs a small tweak.
This revision now requires changes to proceed.Oct 26 2014, 2:34 PM ankur29.garg edited edge metadata. Comment ActionsMoved the transformation to the location suggested. ankur29.garg edited edge metadata. Comment ActionsAdded the test case. Forgot to include it in the last revision. This revision is now accepted and ready to land.Nov 2 2014, 9:44 PM Comment Actions Thank you David, for reviewing the patch. Can you also please commit this, as I don't have commit access yet. Thanks.
Revision Contents
Diff 15682 lib/Transforms/InstCombine/InstCombineAddSub.cpp
|
Please move your change so it is near this pattern.