[llvm] Calculate KnownBits from Metadata correctly for vector loads (PR #128908)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 18 08:09:55 PDT 2025
================
@@ -4004,22 +4004,25 @@ KnownBits SelectionDAG::computeKnownBits(SDValue Op, const APInt &DemandedElts,
}
}
} else if (Op.getResNo() == 0) {
- KnownBits Known0(!LD->getMemoryVT().isScalableVT()
- ? LD->getMemoryVT().getFixedSizeInBits()
- : BitWidth);
+ unsigned MemorySize = !LD->getMemoryVT().isScalableVT()
+ ? LD->getMemoryVT().getFixedSizeInBits()
----------------
LU-JOHN wrote:
KnownBits is calculated for a scalar element. Removed unnecessary code dealing with whole vector.
https://github.com/llvm/llvm-project/pull/128908
More information about the llvm-commits
mailing list