add algebraic IR simplification

This commit is contained in:
2026-06-30 00:31:17 +08:00
parent 108f3d9e4b
commit 6f943b395f
4 changed files with 115 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ class DominatorTree {
bool RunMem2Reg(Function* func, Context& ctx);
bool RunConstProp(Function* func, Context& ctx);
bool RunConstFold(Function* func, Context& ctx);
bool RunAlgebraicSimplify(Function* func, Context& ctx);
bool RunDCE(Function* func);
bool RunCFGSimplify(Function* func);
bool RunCSE(Function* func);