[Mlir-commits] [mlir] Fix crash in --test-tosa-op-availability when running under the threaded pass manager (PR #183022)

Arjun Bhamra llvmlistbot at llvm.org
Tue Feb 24 06:08:21 PST 2026


================
@@ -26,9 +26,12 @@ struct PrintOpAvailability
   StringRef getArgument() const final { return "test-tosa-op-availability"; }
   StringRef getDescription() const final { return "Test Tosa op availability"; }
 };
+static llvm::sys::SmartRWMutex<true> PrintMutex;
----------------
abhamra wrote:

Based on TOSA's `availability.mlir` test, it seems like they intend to run it with `-mlir-disable-threading` anyway; would it be better to simply have a check like `if (getContext().isMultithreadingEnabled())`, and emit an error if it is?

(I was also working on this issue, and am curious about your perspective).

https://github.com/llvm/llvm-project/pull/183022


More information about the Mlir-commits mailing list