Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Aug 27, 2024
1 parent 0907b34 commit 88ef06d
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions compiler/noirc_evaluator/src/ssa/opt/constant_folding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,15 @@
//! different blocks are merged, i.e. after the [`flatten_cfg`][super::flatten_cfg] pass.
use std::collections::HashSet;

use acvm::{
acir::{AcirField, BlackBoxFunc},
FieldElement,
};
use acvm::{acir::AcirField, FieldElement};
use iter_extended::vecmap;

use crate::ssa::{
ir::{
basic_block::BasicBlockId,
dfg::{DataFlowGraph, InsertInstructionResult},
function::Function,
instruction::{Instruction, InstructionId, Intrinsic},
instruction::{Instruction, InstructionId},
types::Type,
value::{Value, ValueId},
},
Expand Down Expand Up @@ -140,15 +137,6 @@ impl Context {
let instruction = Self::resolve_instruction(id, dfg, constraint_simplification_mapping);
let old_results = dfg.instruction_results(id).to_vec();

let keccakf1600 = dfg.import_intrinsic(Intrinsic::BlackBox(BlackBoxFunc::Keccakf1600));
match instruction {
Instruction::Call { ref func, ref arguments } if *func == keccakf1600 => {
println!("{instruction:?}");
println!("{:?}", dfg.get_array_constant(arguments[0]));
}
_ => (),
}

// If a copy of this instruction exists earlier in the block, then reuse the previous results.
if let Some(cached_results) =
Self::get_cached(dfg, instruction_result_cache, &instruction, *side_effects_enabled_var)
Expand Down

0 comments on commit 88ef06d

Please sign in to comment.