Skip to content

Commit

Permalink
Make the non-simplifying method public
Browse files Browse the repository at this point in the history
  • Loading branch information
aakoshh committed Jan 6, 2025
1 parent fc9ae19 commit a5f6157
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion compiler/noirc_evaluator/src/ssa/ir/dfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Vec<Type>>,
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,
Expand Down

0 comments on commit a5f6157

Please sign in to comment.