Skip to content

Commit ae1e873

Browse files
IanWood1Groverkss
authored andcommitted
Revert "[mlir] IntegerRangeAnalysis: don't loop over splat..." (llvm#115388)
Hitting assertion in IREE https://github.com/iree-org/iree/actions/runs/11732283897/job/32684201665?pr=19066 ``` iree-compile: /__w/iree/iree/third_party/llvm-project/mlir/include/mlir/IR/BuiltinAttributes.h:423: auto mlir::DenseElementsAttr::getValues() const [T = llvm::APInt]: Assertion `succeeded(range) && "element type cannot be iterated"' failed. ``` Reverts llvm#115229
1 parent bcdaf89 commit ae1e873

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)