Reapply [ValueTracking] Drop ucmp/scmp from getIntrinsicRange() (NFCI)
Reapply after d51b2785abf77978d9218a7b6fb5b8ec6c770c31, which should
fix optimization regressions.
After #135642 we have a range attribute on the intrinsic declaration,
so we should not need the special handling here.
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index cdf7f05..1d3f8b7 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -10146,10 +10146,6 @@
if (!II.getParent() || !II.getFunction())
break;
return getVScaleRange(II.getFunction(), Width);
- case Intrinsic::scmp:
- case Intrinsic::ucmp:
- return ConstantRange::getNonEmpty(APInt::getAllOnes(Width),
- APInt(Width, 2));
default:
break;
}