Skip to content

Commit dba8acd

Browse files
committed
Revert "[ValueTracking] Drop ucmp/scmp from getIntrinsicRange() (NFCI)"
This does seem to cause some functionality to change, see comment on 278c429 This reverts commit 278c429.
1 parent a5cdbef commit dba8acd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/Analysis/ValueTracking.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10146,6 +10146,10 @@ static ConstantRange getRangeForIntrinsic(const IntrinsicInst &II,
1014610146
if (!II.getParent() || !II.getFunction())
1014710147
break;
1014810148
return getVScaleRange(II.getFunction(), Width);
10149+
case Intrinsic::scmp:
10150+
case Intrinsic::ucmp:
10151+
return ConstantRange::getNonEmpty(APInt::getAllOnes(Width),
10152+
APInt(Width, 2));
1014910153
default:
1015010154
break;
1015110155
}

0 commit comments

Comments
 (0)