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 16:55:42 +0200
commitc5a5f4330a0014b9beafef1c75cc66dba917fa09 (patch)
tree6a4a0f56ef0dcd34de7e1eef05ea2bbe2c9fa082 /llvm/lib/Analysis/ValueTracking.cpp
parentc2ae5723b5418fa0f5901f2c21c2c905fa48a498 (diff)
downloadllvm-c5a5f4330a0014b9beafef1c75cc66dba917fa09.zip
llvm-c5a5f4330a0014b9beafef1c75cc66dba917fa09.tar.gz
llvm-c5a5f4330a0014b9beafef1c75cc66dba917fa09.tar.bz2
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.
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;
}