I'll also open a review for the new combine in InstCombine after this is submitted
Alive proofs for the combines I want to add:
ult/slt https://rise4fun.com/Alive/DJg ugt/sgt https://rise4fun.com/Alive/2RBn eq/ne https://rise4fun.com/Alive/iUsl
Differential D51625
[InstCombine] Add new tests in preparation for a combine of icmp (mul nsw/nuw X, C2), C Nicola on Sep 4 2018, 6:06 AM. Authored by
Details I'll also open a review for the new combine in InstCombine after this is submitted Alive proofs for the combines I want to add: ult/slt https://rise4fun.com/Alive/DJg ugt/sgt https://rise4fun.com/Alive/2RBn eq/ne https://rise4fun.com/Alive/iUsl
Diff Detail Event TimelineComment Actions LGTM - the tests can be enhanced as we add/evolve the code for these folds. I didn't look at all of the proofs, but at least for this pair, we can simplify the pre-conditions: Also, for unsigned math, I think you want to use Alive's unsigned notation to match how the transforms will be coded: Getting the pre-conditions right looks tricky, so I think it will be best to introduce the transforms for these 1 or 2 patterns at a time, so we can be sure we get each case right. |