aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2025-04-22 10:53:30 +0200
committerNikita Popov <npopov@redhat.com>2025-04-22 10:56:04 +0200
commit278c429d11e63bc709ea8c537b23c4e350ce2a07 (patch)
tree2c014aac5daff213ddc57863040cb40434fcb37c /llvm/lib/Analysis/ValueTracking.cpp
parent382263376fcfed967f5bc17400d9e4542b37801c (diff)
downloadllvm-278c429d11e63bc709ea8c537b23c4e350ce2a07.zip
llvm-278c429d11e63bc709ea8c537b23c4e350ce2a07.tar.gz
llvm-278c429d11e63bc709ea8c537b23c4e350ce2a07.tar.bz2
[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.
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r--llvm/lib/Analysis/ValueTracking.cpp4
1 files changed, 0 insertions, 4 deletions
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 @@ static ConstantRange getRangeForIntrinsic(const IntrinsicInst &II,
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;
}