Skip to content

Commit 8220432

Browse files
authored
Revert "[mlir] IntegerRangeAnalysis: don't loop over splat attr (#115229)"
This reverts commit 3deee23.
1 parent 49ee606 commit 8220432

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

mlir/lib/Dialect/Arith/IR/InferIntRangeInterfaceImpls.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ void arith::ConstantOp::inferResultRanges(ArrayRef<ConstantIntRanges> argRanges,
4040
setResultRange(getResult(), ConstantIntRanges::constant(value));
4141
return;
4242
}
43-
if (auto splatAttr = llvm::dyn_cast_or_null<SplatElementsAttr>(getValue())) {
44-
setResultRange(getResult(), ConstantIntRanges::constant(
45-
splatAttr.getSplatValue<APInt>()));
46-
return;
47-
}
4843
if (auto arrayCstAttr =
4944
llvm::dyn_cast_or_null<DenseIntElementsAttr>(getValue())) {
5045
std::optional<ConstantIntRanges> result;

0 commit comments

Comments
 (0)