docs(doc): 调整lab5, lab6部分表述

This commit is contained in:
jing
2026-03-12 19:05:37 +08:00
parent 0a0897a705
commit e72944a36b
4 changed files with 23 additions and 12 deletions

View File

@@ -2,6 +2,7 @@ add_library(ir_passes STATIC
PassManager.cpp
Mem2Reg.cpp
ConstFold.cpp
ConstProp.cpp
CSE.cpp
DCE.cpp
CFGSimplify.cpp

View File

@@ -0,0 +1,5 @@
// 常量传播Constant Propagation
// - 沿 use-def 关系传播已知常量
// - 将可替换的 SSA 值改写为常量,暴露更多折叠机会
// - 常与 ConstFold、DCE、CFGSimplify 迭代配合使用