aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2023-08-12 19:48:30 -0400
committerMatt Arsenault <Matthew.Arsenault@amd.com>2023-09-01 20:19:55 -0400
commit301b0e477b0882ef8f8e67c72edbcd304631472c (patch)
treed95deac5d25ed517410c3d866448c336d8f474b9 /llvm/lib/Analysis/ValueTracking.cpp
parent2e2b3678e5ef20a2570381ff36eeda7a5e7b82a7 (diff)
downloadllvm-301b0e477b0882ef8f8e67c72edbcd304631472c.zip
llvm-301b0e477b0882ef8f8e67c72edbcd304631472c.tar.gz
llvm-301b0e477b0882ef8f8e67c72edbcd304631472c.tar.bz2
ValueTracking: Handle exp10 in computeKnownFPClass
It's the same as the other exps. https://reviews.llvm.org/D157891
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r--llvm/lib/Analysis/ValueTracking.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index 801814e..bf5adbb 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -4686,7 +4686,8 @@ void computeKnownFPClass(const Value *V, const APInt &DemandedElts,
break;
}
case Intrinsic::exp:
- case Intrinsic::exp2: {
+ case Intrinsic::exp2:
+ case Intrinsic::exp10: {
Known.knownNot(fcNegative);
if ((InterestedClasses & fcNan) == fcNone)
break;