[Mlir-commits] [mlir] [mlir][Interfaces] Track and infer no-overflow flags in integer ranges (PR #191777)
Mehdi Amini
llvmlistbot at llvm.org
Tue Apr 14 10:03:23 PDT 2026
================
@@ -104,10 +104,10 @@ LogicalResult StridedMetadataRangeAnalysis::visitOperation(
};
// Convert the arguments lattices to a vector.
- SmallVector<StridedMetadataRange> argRanges = llvm::map_to_vector(
- operands, [](const StridedMetadataRangeLattice *lattice) {
- return lattice->getValue();
- });
+ SmallVector<StridedMetadataRange, 2> argRanges;
+ argRanges.reserve(operands.size());
+ for (const StridedMetadataRangeLattice *lattice : operands)
+ argRanges.push_back(lattice->getValue());
----------------
joker-eph wrote:
OK but that's a symptom of something to address there I think.
This class likely need to be revisited and bound the SmallVector there. Can you try to do this and send a NFC PR ahead of this one?
https://github.com/llvm/llvm-project/pull/191777
More information about the Mlir-commits
mailing list