[llvm-branch-commits] [llvm] [ValueTracking][NFC] Prepare computeKnownFPClass before moving it to ValueTrackingFP.cpp (PR #244967)
Nikita Popov via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Nov 22 00:51:18 PST 2026
================
@@ -5212,8 +5213,9 @@ static void computeKnownFPClassFromCond(const Value *V, Value *Cond,
/// frexp(0) = 0, so the tighter max-assuming-nonzero bound is only usable when
/// \p V is known not to be a logical zero (e.g., for fabs(x) < 0.25, the non-0
/// exponent range is [-149, -2], but the 0 edge case is above this range).
-static std::tuple<int, int, int>
-computeKnownExponentRangeFromContext(const Value *V, const SimplifyQuery &Q) {
+std::tuple<int, int, int>
+llvm::computeKnownExponentRangeFromContext(const Value *V,
+ const SimplifyQuery &Q) {
----------------
nikic wrote:
Isn't this only used by computeConstantRange()? Why does it need to be exported?
https://github.com/llvm/llvm-project/pull/244967
More information about the llvm-branch-commits
mailing list