Skip to content

Commit 278c429

Browse files
committed
[ValueTracking] Drop ucmp/scmp from getIntrinsicRange() (NFCI)
After #135642 we have a range attribute on the intrinsic declaration, so we should not need the special handling here.
1 parent 3822633 commit 278c429

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

llvm/lib/Analysis/ValueTracking.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -10146,10 +10146,6 @@ 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));
1015310149
default:
1015410150
break;
1015510151
}

0 commit comments

Comments
 (0)