[llvm] [DAG] Define computeConstantRange for VSCALE folding (PR #176027)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 26 21:46:39 PST 2026
================
@@ -4534,10 +4524,8 @@ SelectionDAG::computeOverflowForUnsignedMul(SDValue N0, SDValue N1) const {
if (isNullConstant(N1) || isOneConstant(N1))
return OFK_Never;
- KnownBits N0Known = computeKnownBits(N0);
- KnownBits N1Known = computeKnownBits(N1);
- ConstantRange N0Range = ConstantRange::fromKnownBits(N0Known, false);
- ConstantRange N1Range = ConstantRange::fromKnownBits(N1Known, false);
+ ConstantRange N0Range = computeConstantRangeIncludingKnownBits(N0, false);
+ ConstantRange N1Range = computeConstantRangeIncludingKnownBits(N1, false);
----------------
lukel97 wrote:
Just to confirm then there weren't any changes in the tests?
https://github.com/llvm/llvm-project/pull/176027
More information about the llvm-commits
mailing list