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 30a9d9d commit 5aec561Copy full SHA for 5aec561
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
@@ -7078,7 +7078,7 @@ Instruction *InstCombinerImpl::foldICmpUsingBoolRange(ICmpInst &I) {
7078
// icmp eq X, (zext (icmp ne X, 0)) --> X == 0 || X == 1
7079
// icmp ne X, (zext (icmp ne X, 0)) --> X != 0 && X != 1
7080
// icmp eq X, (sext (icmp ne X, 0)) --> X == 0 || X == -1
7081
- // icmp ne X, (sext (icmp ne X, 0)) --> X != 0 && X == -1
+ // icmp ne X, (sext (icmp ne X, 0)) --> X != 0 && X != -1
7082
return CreateRangeCheck();
7083
}
7084
} else if (IsSExt ? C->isAllOnes() : C->isOne()) {
0 commit comments