[Mlir-commits] [mlir] [MLIR] Preserve operand segment sizes when removing dead inputs (PR #223154)
Ivan Butygin
llvmlistbot at llvm.org
Sun Sep 13 03:05:17 PDT 2026
================
@@ -923,7 +923,7 @@ struct RemoveDeadRegionBranchOpSuccessorInputs : public RewritePattern {
for (auto &pair : operandsToRemove) {
Operation *op = pair.first;
BitVector &operands = pair.second;
- rewriter.modifyOpInPlace(op, [&]() { op->eraseOperands(operands); });
+ rewriter.modifyOpInPlace(op, [&]() { eraseOperands(op, operands); });
----------------
Hardcode84 wrote:
Done. Also fixed similarish issue in LLVM dialect, which also exposed parser bug.
https://github.com/llvm/llvm-project/pull/223154
More information about the Mlir-commits
mailing list