Skip to content

Commit

Permalink
fix(ssa refactor): Fix constant folding looping forever (#1611)
Browse files Browse the repository at this point in the history
Fix constant folding looping forever
  • Loading branch information
jfecher authored Jun 8, 2023
1 parent 4867f4e commit afe58cc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ fn constant_fold(function: &mut Function) {
continue;
}

context.visited_blocks.insert(block);
context.fold_constants_in_block(function, block);
}
}
Expand Down

0 comments on commit afe58cc

Please sign in to comment.