[llvm-branch-commits] [mlir] 8220432 - Revert "[mlir] IntegerRangeAnalysis: don't loop over splat attr (#115229)"
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Nov 7 14:55:51 PST 2024
Author: Ian Wood
Date: 2024-11-07T14:55:48-08:00
New Revision: 8220432016133c50d2dac6c71e6efd37be1da38a
URL: https://github.com/llvm/llvm-project/commit/8220432016133c50d2dac6c71e6efd37be1da38a
DIFF: https://github.com/llvm/llvm-project/commit/8220432016133c50d2dac6c71e6efd37be1da38a.diff
LOG: Revert "[mlir] IntegerRangeAnalysis: don't loop over splat attr (#115229)"
This reverts commit 3deee235986802694175259e078dfad0edcb40ed.
Added:
Modified:
mlir/lib/Dialect/Arith/IR/InferIntRangeInterfaceImpls.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Arith/IR/InferIntRangeInterfaceImpls.cpp b/mlir/lib/Dialect/Arith/IR/InferIntRangeInterfaceImpls.cpp
index 59c9759d35393f..8682294c8a6972 100644
--- a/mlir/lib/Dialect/Arith/IR/InferIntRangeInterfaceImpls.cpp
+++ b/mlir/lib/Dialect/Arith/IR/InferIntRangeInterfaceImpls.cpp
@@ -40,11 +40,6 @@ void arith::ConstantOp::inferResultRanges(ArrayRef<ConstantIntRanges> argRanges,
setResultRange(getResult(), ConstantIntRanges::constant(value));
return;
}
- if (auto splatAttr = llvm::dyn_cast_or_null<SplatElementsAttr>(getValue())) {
- setResultRange(getResult(), ConstantIntRanges::constant(
- splatAttr.getSplatValue<APInt>()));
- return;
- }
if (auto arrayCstAttr =
llvm::dyn_cast_or_null<DenseIntElementsAttr>(getValue())) {
std::optional<ConstantIntRanges> result;
More information about the llvm-branch-commits
mailing list