From 5be47277405979bd2d7f2bed7925a80374a4ebf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Povi=C5=A1er?= Date: Mon, 15 Jan 2024 12:42:39 +0100 Subject: [PATCH] opt_lut: Skip narrowing when connections are constrained --- passes/opt/opt_lut.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/passes/opt/opt_lut.cc b/passes/opt/opt_lut.cc index ad565b043..97745d48f 100644 --- a/passes/opt/opt_lut.cc +++ b/passes/opt/opt_lut.cc @@ -518,6 +518,12 @@ struct OptLutWorker } show_stats_by_arity(); + if (!dlogic.empty()) { + // We don't have handling for the constraints, so until then, disable + // narrowing. + log("Narrowing LUTs skipped: constraints in place.\n"); + return; + } log("\n"); log("Narrowing LUTs.\n"); worklist = luts;