File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments