[Mlir-commits] [mlir] [mlir][Python] remove stray nb::cast (PR #176299)
Maksim Levental
llvmlistbot at llvm.org
Thu Jan 15 18:28:00 PST 2026
https://github.com/makslevental created https://github.com/llvm/llvm-project/pull/176299
In https://github.com/llvm/llvm-project/pull/155114 we removed `liveOperations` but forget this line which was being used to invalidate operations under a transform root, which currently isn't being used for anything. So remove.
>From d972311361745abfc09df64e326b6525382d335c Mon Sep 17 00:00:00 2001
From: makslevental <maksim.levental at gmail.com>
Date: Thu, 15 Jan 2026 18:25:37 -0800
Subject: [PATCH] [mlir][Python] remove stray nb::cast
---
mlir/lib/Bindings/Python/TransformInterpreter.cpp | 6 ------
1 file changed, 6 deletions(-)
diff --git a/mlir/lib/Bindings/Python/TransformInterpreter.cpp b/mlir/lib/Bindings/Python/TransformInterpreter.cpp
index a9f204ff9d0a5..b263e65ff8cf8 100644
--- a/mlir/lib/Bindings/Python/TransformInterpreter.cpp
+++ b/mlir/lib/Bindings/Python/TransformInterpreter.cpp
@@ -71,12 +71,6 @@ static void populateTransformInterpreterSubmodule(nb::module_ &m) {
PyOperationBase &transformModule, const PyTransformOptions &options) {
mlir::python::CollectDiagnosticsToStringScope scope(
mlirOperationGetContext(transformRoot.getOperation()));
-
- // Calling back into Python to invalidate everything under the payload
- // root. This is awkward, but we don't have access to PyMlirContext
- // object here otherwise.
- nb::object obj = nb::cast(payloadRoot);
-
MlirLogicalResult result = mlirTransformApplyNamedSequence(
payloadRoot.getOperation(), transformRoot.getOperation(),
transformModule.getOperation(), options.options);
More information about the Mlir-commits
mailing list