From c818a00c649fafe71bb16d61fcf388c3e7c40936 Mon Sep 17 00:00:00 2001 From: Philipp Grulich Date: Wed, 4 Dec 2024 22:23:10 +0100 Subject: [PATCH] fix benchmark --- nautilus/test/benchmark/TracingBenchmark.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nautilus/test/benchmark/TracingBenchmark.cpp b/nautilus/test/benchmark/TracingBenchmark.cpp index 45aeb7f8..d03fa32e 100644 --- a/nautilus/test/benchmark/TracingBenchmark.cpp +++ b/nautilus/test/benchmark/TracingBenchmark.cpp @@ -82,7 +82,7 @@ TEST_CASE("IR Creation Benchmark") { TEST_CASE("Backend Compilation Benchmark") { - auto registry = compiler::CompilationBackendRegistry(); + auto registry = compiler::CompilationBackendRegistry::getInstance(); std::vector backends = {}; #ifdef ENABLE_MLIR_BACKEND @@ -108,7 +108,7 @@ TEST_CASE("Backend Compilation Benchmark") { std::shared_ptr trace = tracing::TraceContext::trace(func); auto ssaCreationPhase = tracing::SSACreationPhase(); trace = ssaCreationPhase.apply(trace); - auto backendBackend = registry.getBackend(backend); + auto backendBackend = registry->getBackend(backend); auto irConversionPhase = tracing::TraceToIRConversionPhase(); auto ir = irConversionPhase.apply(trace); auto op = engine::Options();