Skip to content

Commit 44e5994

Browse files
committed
.
1 parent 0fce2fd commit 44e5994

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

zjit/src/hir.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6144,7 +6144,7 @@ impl Function {
61446144

61456145
// Instantiate the domain for abstract interpretation.
61466146
// We store possible param values for each block
6147-
let mut param_values: Vec<Vec<ParamValue>> = vec![Vec::new(); self.blocks.len()];
6147+
let mut param_values: Vec<Vec<ParamValue>> = self.blocks.iter().map(|block| vec![ParamValue::None; block.params.len()]).collect();
61486148

61496149
let blocks = self.reverse_post_order();
61506150

@@ -6164,12 +6164,6 @@ impl Function {
61646164
let max_params = blocks.iter().copied().map(|id| self.blocks[id].params.len()).max().unwrap_or(0);
61656165
let mut trivial_indices: Vec<usize> = Vec::with_capacity(max_params);
61666166

6167-
// Prepare the initial param_values. As trivial block params are discovered and elided during analysis,
6168-
// the number of params in each row will decrease.
6169-
for (row, block) in param_values.iter_mut().zip(&self.blocks) {
6170-
row.resize(block.params.len(), ParamValue::None);
6171-
}
6172-
61736167
let mut changed = true;
61746168

61756169
while changed {

0 commit comments

Comments
 (0)