[llvm] [SelectionDAG]: Deduce known bits from SMIN and SMAX (PR #85722)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 19 00:15:05 PDT 2024
================
@@ -4017,6 +4015,16 @@ KnownBits SelectionDAG::computeKnownBits(SDValue Op, const APInt &DemandedElts,
}
}
+ // For SMIN, if CstHigh is negative we know the result will be
----------------
topperc wrote:
> smin_known_zero_2
>
> it mirrors smax's logic
I don't see how that test could test something that uses ComputeNumSignBits.
https://github.com/llvm/llvm-project/pull/85722
More information about the llvm-commits
mailing list