From 03e60f715bbe02562921815f4f79015ea0d9abdc Mon Sep 17 00:00:00 2001 From: "Risbud, Sumedh" Date: Tue, 11 Oct 2022 16:35:13 -0700 Subject: [PATCH] Fixed the explicit ordering of subcompilers in compilation stack: C-first-Nc-second heuristic Signed-off-by: Risbud, Sumedh --- src/lava/magma/compiler/compiler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lava/magma/compiler/compiler.py b/src/lava/magma/compiler/compiler.py index a658aa2bd..7b13f1b65 100644 --- a/src/lava/magma/compiler/compiler.py +++ b/src/lava/magma/compiler/compiler.py @@ -310,9 +310,9 @@ def _create_subcompilers( # ...and add it to the list. subcompilers.append(compiler) # Remember the index for C and Nc subcompilers: - if isinstance(compiler, type(CProcCompiler)): + if isinstance(compiler, CProcCompiler): c_idx.append(idx) - if isinstance(compiler, type(NcProcCompiler)): + if isinstance(compiler, NcProcCompiler): nc_idx.append(idx) # Implement the heuristic "C-first Nc-second" whenever C and Nc