From 8b4abe447b05a82a5d777a6a926204751866fbcf Mon Sep 17 00:00:00 2001 From: pjh456 <147148383@qq.com> Date: Mon, 12 Oct 2026 12:01:10 +0000 Subject: [PATCH] =?UTF-8?q?style:=20=E8=87=AA=E5=8A=A8=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/oxide_regalloc/src/graph.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/oxide_regalloc/src/graph.rs b/crates/oxide_regalloc/src/graph.rs index 2a8fdbdb..eb893d91 100644 --- a/crates/oxide_regalloc/src/graph.rs +++ b/crates/oxide_regalloc/src/graph.rs @@ -104,9 +104,7 @@ pub(super) fn collect_real_vregs(f: &IRFunction) -> Vec { /// 构建干涉图:`build(f, live, spill_set, fresh) -> InterferenceGraph`。 /// spill_set 中的 vreg 不再是节点(其 fresh 替代品入图);fresh 按 at==i 并入该指令活集。 -pub(super) fn build( - f: &IRFunction, live: &LiveInfo, spill_set: &[u32], fresh: &[FreshVreg], -) -> InterferenceGraph { +pub(super) fn build(f: &IRFunction, live: &LiveInfo, spill_set: &[u32], fresh: &[FreshVreg]) -> InterferenceGraph { let mut real = collect_real_vregs(f); // inst_live_before 长度 = 指令数(逐指令活集索引) let inst_count = live.inst_live_before.len();