docs: 改写死代码消除注释的先例引用

This commit is contained in:
2026-09-17 17:03:05 +00:00
parent 2a07ec4a5d
commit f3e055eb54
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ use oxide_liveness::LiveInfo;
/// 单遍死指令标记:就地改写 `keep`(保活/删除标记),f 只读。
pub(super) fn pass_dead_with_liveness(f: &IRFunction, live: &LiveInfo, keep: &mut [bool]) {
// label 目标位图:label_pos 指向的 Inst 下标(照 iter_sweep:36-42,越界防御性忽略)
// label 目标位图:label_pos 指向的 Inst 下标;越界槽防御性忽略(label_pos 由 emit 回填,可能未填或失效)。
let mut label_target = vec![false; f.insts.len()];
for pos in f.label_pos.iter().flatten() {
if let Some(t) = label_target.get_mut(*pos) {