Truly independent web browser
LibJS/JIT: Rename the uses in a block with no copy of the block
Andreas Kling6bfc91c1ab71
diff --git a/Libraries/LibJS/JIT/Rust/src/passes/branch_splitting.rs b/Libraries/LibJS/JIT/Rust/src/passes/branch_splitting.rsindex 0a6b78f0e07..071d569f05b 100644--- a/Libraries/LibJS/JIT/Rust/src/passes/branch_splitting.rs+++ b/Libraries/LibJS/JIT/Rust/src/passes/branch_splitting.rs@@ -329,7 +329,8 @@ fn split_one(graph: &mut Graph, dominators: &mut Dominators) -> Result<bool, Colif !dominators.is_reachable(block_id) || block_id == split.block || block_id == split.branch_block {continue;}- let block = graph.block(block_id).clone();+ // NB: The blocks stay as they are while the inputs of their nodes change.+ let block = &graph.blocks[block_index];for phi in &block.phis {for (input_index, predecessor) in block.predecessors.iter().enumerate() {if let Some(side) = side_of(dominators, &split, *predecessor) {