We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6975edb commit c3738cfCopy full SHA for c3738cf
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
@@ -7729,15 +7729,8 @@ Instruction *InstCombinerImpl::visitICmpInst(ICmpInst &I) {
7729
}
7730
7731
// icmp slt (sub nsw x, y), (add nsw x, y) --> icmp sgt y, 0
7732
- // icmp sgt (sub nsw x, y), (add nsw x, y) --> icmp slt y, 0
7733
- // icmp sle (sub nsw x, y), (add nsw x, y) --> icmp sge y, 0
7734
- // icmp sge (sub nsw x, y), (add nsw x, y) --> icmp sle y, 0
7735
// icmp ult (sub nuw x, y), (add nuw x, y) --> icmp ugt y, 0
7736
- // icmp ugt (sub nuw x, y), (add nuw x, y) --> icmp ult y, 0
7737
- // icmp ule (sub nuw x, y), (add nuw x, y) --> icmp uge y, 0
7738
- // icmp uge (sub nuw x, y), (add nuw x, y) --> icmp ule y, 0
7739
// icmp eq (sub nsw/nuw x, y), (add nsw/nuw x, y) --> icmp eq y, 0
7740
- // icmp ne (sub nsw/nuw x, y), (add nsw/nuw x, y) --> icmp ne y, 0
7741
{
7742
Value *A, *B;
7743
CmpPredicate CmpPred;
0 commit comments