[Mlir-commits] [mlir] [mlir] fix assertion failure in remove-dead-values (PR #144849)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Thu Jun 19 09:09:26 PDT 2025
================
@@ -705,7 +705,8 @@ static void cleanUpDeadVals(RDVFinalCleanupList &list) {
// 4. Operands
for (auto &o : list.operands) {
- o.op->eraseOperands(o.nonLive);
+ if (o.nonLive.size() > 0)
----------------
banach-space wrote:
IIUC, the issue is with `o` not having any operands rather than `o.nonLive` being empty, no?
```suggestion
if (o.op->getNumOperands() > 0)
```
https://github.com/llvm/llvm-project/pull/144849
More information about the Mlir-commits
mailing list