Nearest live instruction before `from`; skips entries already marked dead by inner folds. */
(dead: &[bool], from: usize)
| 185 | |
| 186 | /* Nearest live instruction before `from`; skips entries already marked dead by inner folds. */ |
| 187 | fn prev_live(dead: &[bool], from: usize) -> Option<usize> { |
| 188 | let mut i = from; |
| 189 | while i > 0 { |
| 190 | i -= 1; |
| 191 | if !dead[i] { return Some(i); } |
| 192 | } |
| 193 | None |
| 194 | } |
| 195 | |
| 196 | fn try_fold_binop(chunk: &mut SSAChunk, dead: &mut [bool], ip: usize) { |
| 197 | let Some(prev1_ip) = prev_live(dead, ip) else { return }; |
no outgoing calls
no test coverage detected