Menooker
ee5dcdc275
[mlir] fix assertion failure in remove-dead-values (#144849)
Simple IR patterns will trigger assertion error:
```
func.func @test_zero_operands(%I: memref<10xindex>, %I2: memref<10xf32>) {
%v0 = arith.constant 0 : index
%result = memref.alloca_scope -> index {
%c = arith.addi %v0, %v0 : index
memref.store %c, %I[%v0] : memref<10xindex>
memref.alloca_scope.return %c: index
}
func.return
}
```
with error: `mlir/include/mlir/IR/Operation.h:988:
mlir::detail::OperandStorage& mlir::Operation::getOperandStorage():
Assertion `hasOperandStorage && "expected operation to have operand
storage"' failed.`
This PR will fix this issue.
---------
Co-authored-by: Andrzej Warzyński <andrzej.warzynski@gmail.com>
Co-authored-by: Mehdi Amini <joker.eph@gmail.com>
2025-06-22 23:03:36 +09:00
..
2025-06-21 10:44:54 +02:00
2025-04-24 09:51:42 +02:00
2025-01-28 13:51:50 -08:00
2025-05-14 15:00:29 +02:00
2025-04-25 08:53:29 -07:00
2025-03-18 09:10:49 +01:00
2025-01-20 08:21:09 +03:00
2025-01-07 12:14:35 +01:00
2025-03-20 22:24:17 -07:00
2025-05-12 10:29:03 -07:00
2025-06-22 23:03:36 +09:00
2025-03-26 07:47:02 -07:00
2025-05-17 09:09:26 -07:00