From a5f6157543b15690dec4155f91018589f50abf63 Mon Sep 17 00:00:00 2001 From: Akosh Farkash Date: Mon, 6 Jan 2025 15:19:06 +0000 Subject: [PATCH] Make the non-simplifying method public --- compiler/noirc_evaluator/src/ssa/ir/dfg.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compiler/noirc_evaluator/src/ssa/ir/dfg.rs b/compiler/noirc_evaluator/src/ssa/ir/dfg.rs index eb10bf2559a..2be3eba488a 100644 --- a/compiler/noirc_evaluator/src/ssa/ir/dfg.rs +++ b/compiler/noirc_evaluator/src/ssa/ir/dfg.rs @@ -239,13 +239,17 @@ impl DataFlowGraph { id } - fn insert_instruction_and_results_without_simplification( + pub(crate) fn insert_instruction_and_results_without_simplification( &mut self, instruction_data: Instruction, block: BasicBlockId, ctrl_typevars: Option>, call_stack: CallStackId, ) -> InsertInstructionResult { + if self.is_runtime_separated && !self.is_handled_by_runtime(&instruction_data) { + return InsertInstructionResult::InstructionRemoved; + } + let id = self.insert_instruction_without_simplification( instruction_data, block,