perf: 逐指令活集拍平为单一位集加消费方维度守卫同步

This commit is contained in:
2026-10-12 12:18:10 +00:00
parent 215c74fe0b
commit 3cabfb70f9
12 changed files with 92 additions and 71 deletions
+6 -2
View File
@@ -16,8 +16,12 @@ fn smoke(src: &str) {
let (info, cfg, inst_len) = run_liveness(src);
assert_eq!(info.block_live_in.len(), cfg.blocks.len(), "block 维度一致");
assert_eq!(info.block_live_out.len(), cfg.blocks.len(), "block 维度一致");
assert_eq!(info.inst_live_before.len(), inst_len, "inst 维度一致");
assert_eq!(info.inst_live_after.len(), inst_len, "inst 维度一致");
assert_eq!(
info.inst_live_before.len(),
inst_len * info.words,
"inst 维度一致(拍平后长度 = N×words)"
);
assert_eq!(info.inst_live_after.len(), inst_len * info.words, "inst 维度一致(拍平后长度 = N×words)");
}
#[test]