Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jfecher committed Oct 9, 2024
1 parent 65c2e38 commit 0dd3b83
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fn find_back_edges(
back_edges
}

/// Collects the underlying variables inside a value id. It might be more than one, for example in constant arrays that are constructed with multiple vars.
/// Collects the underlying variable inside a value id if it is not a function
pub(crate) fn collect_variables_of_value(
value_id: ValueId,
dfg: &DataFlowGraph,
Expand Down
14 changes: 0 additions & 14 deletions compiler/noirc_evaluator/src/ssa/acir_gen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1596,13 +1596,6 @@ impl<'a> Context<'a> {
match array_typ {
Type::Array(_, _) | Type::Slice(_) => {
match &dfg[array_id] {
// Value::Array { array, .. } => {
// for (i, value) in array.iter().enumerate() {
// flat_elem_type_sizes.push(
// self.flattened_slice_size(*value, dfg) + flat_elem_type_sizes[i],
// );
// }
// }
Value::Instruction { .. } | Value::Param { .. } => {
// An instruction representing the slice means it has been processed previously during ACIR gen.
// Use the previously defined result of an array operation to fetch the internal type information.
Expand Down Expand Up @@ -1735,13 +1728,6 @@ impl<'a> Context<'a> {
fn flattened_slice_size(&mut self, array_id: ValueId, dfg: &DataFlowGraph) -> usize {
let mut size = 0;
match &dfg[array_id] {
// Value::Array { array, .. } => {
// // The array is going to be the flattened outer array
// // Flattened slice size from SSA value does not need to be multiplied by the len
// for value in array {
// size += self.flattened_slice_size(*value, dfg);
// }
// }
Value::NumericConstant { .. } => {
size += 1;
}
Expand Down

0 comments on commit 0dd3b83

Please sign in to comment.