[Mlir-commits] [mlir] [mlir][Pass] Enable the option for reproducer generation without crashing (PR #75421)
Mehdi Amini
llvmlistbot at llvm.org
Tue Jan 2 06:38:24 PST 2024
================
@@ -283,19 +289,7 @@ void PassCrashReproducerGenerator::finalize(Operation *rootOp,
impl->runningPasses.clear();
}
-void PassCrashReproducerGenerator::prepareReproducerFor(Pass *pass,
- Operation *op) {
- // If not tracking local reproducers, we simply remember that this pass is
- // running.
- impl->runningPasses.insert(std::make_pair(pass, op));
- if (!impl->localReproducer)
- return;
-
- // Disable the current pass recovery context, if there is one. This may happen
- // in the case of dynamic pass pipelines.
- if (!impl->activeContexts.empty())
- impl->activeContexts.back()->disable();
-
+static std::string produceTextualPipelineWithScope(Pass *pass, Operation *&op) {
----------------
joker-eph wrote:
Why is the `op` pointer passed by reference?
https://github.com/llvm/llvm-project/pull/75421
More information about the Mlir-commits
mailing list