mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-26 11:41:13 +08:00
feat: 编译管线/类型层 crate 补全多级日志宏 + 关键路径日志
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
|
||||
mod dataflow;
|
||||
mod live_info;
|
||||
mod liveness_log;
|
||||
mod ranges;
|
||||
|
||||
pub use live_info::LiveInfo;
|
||||
@@ -20,6 +21,7 @@ pub fn liveness(f: &IRFunction, cfg: &Cfg) -> LiveInfo {
|
||||
if f.insts.is_empty() {
|
||||
return LiveInfo::new();
|
||||
}
|
||||
liveness_debug!("liveness: {} blocks, {} insts", cfg.blocks.len(), f.insts.len());
|
||||
let (block_in, block_out, reg_count) = dataflow::block_liveness(f, cfg);
|
||||
let (inst_before, inst_after) = ranges::inst_liveness(f, cfg, &block_out, &block_in, reg_count);
|
||||
LiveInfo {
|
||||
|
||||
Reference in New Issue
Block a user