[llvm] [LLVM][DAGCombiner] Port calculateByteProvider to TypeSize. (PR #148425)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 14 04:55:26 PDT 2025
================
@@ -9248,20 +9249,23 @@ calculateByteProvider(SDValue Op, unsigned Index, unsigned Depth,
if (!L->isSimple() || L->isIndexed())
return std::nullopt;
- unsigned NarrowBitWidth = L->getMemoryVT().getSizeInBits();
- if (NarrowBitWidth % 8 != 0)
+ TypeSize NarrowBitWidth = L->getMemoryVT().getSizeInBits();
----------------
paulwalker-arm wrote:
Fixed.
https://github.com/llvm/llvm-project/pull/148425
More information about the llvm-commits
mailing list