mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-24 02:31:13 +08:00
perf: DCE 管线复用,零删除免重建 CFG 与活集
This commit is contained in:
@@ -13,7 +13,7 @@ fn compile_source(src: &str, regalloc: bool) -> Result<CompiledModule, String> {
|
||||
let mut ir = oxide_emit::Emitter::new()
|
||||
.emit_program(&program, false, false)
|
||||
.expect("emit failed");
|
||||
oxide_dce::dce(&mut ir);
|
||||
let _ = oxide_dce::dce(&mut ir);
|
||||
if regalloc {
|
||||
let cfg = oxide_cfg::build_cfg(&ir);
|
||||
let live = oxide_liveness::liveness(&ir, &cfg);
|
||||
|
||||
Reference in New Issue
Block a user