[llvm-branch-commits] [llvm] ValueTracking: Improve sign bit handling for fdiv (PR #174652)
Matt Arsenault via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Jan 8 09:03:02 PST 2026
================
@@ -5694,8 +5694,9 @@ void computeKnownFPClass(const Value *V, const APInt &DemandedElts,
fcNan | fcInf | fcZero | fcNegative, KnownRHS, Q,
Depth + 1);
- bool KnowSomethingUseful =
- KnownRHS.isKnownNeverNaN() || KnownRHS.isKnownNever(fcNegative);
+ bool KnowSomethingUseful = KnownRHS.isKnownNeverNaN() ||
+ KnownRHS.isKnownNever(fcNegative) ||
+ KnownRHS.isKnownNever(fcPositive);
if (KnowSomethingUseful || WantPositive) {
const FPClassTest InterestedLHS =
----------------
arsenm wrote:
I'm debating just ripping out the whole interested class mechanism, it's untestable and hard to get right
https://github.com/llvm/llvm-project/pull/174652
More information about the llvm-branch-commits
mailing list